swh-lister/swh/lister/pubdev
Antoine Lambert db6ce12e9e Refactor and deduplicate HTTP requests code in listers
Numerous listers were using the same page_request method or equivalent
in their implementation so prefer to deduplicate that code by adding
an http_request method in base lister class: swh.lister.pattern.Lister.

That method simply wraps a call to requests.Session.request and logs
some useful info for debugging and error reporting, also an HTTPError
will be raised if a request ends up with an error.

All listers using that new method now benefit of requests retry when
an HTTP error occurs thanks to the use of the http_retry decorator.
2022-09-26 10:48:40 +02:00
..
tests pubdev: Update User-Agent request header value 2022-09-07 12:15:34 +02:00
__init__.py Pub.dev lister for Dart and Flutter packages 2022-08-26 10:24:08 +02:00
lister.py Refactor and deduplicate HTTP requests code in listers 2022-09-26 10:48:40 +02:00
tasks.py Pub.dev lister for Dart and Flutter packages 2022-08-26 10:24:08 +02:00