Ruff
This commit is contained in:
parent
ff12a6450b
commit
cd62c9dc3f
|
@ -13,9 +13,10 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
URL_API_ROOT = 'https://api.wanikani.com/v2'
|
||||
URL_ASSIGNMENTS = URL_API_ROOT + '/assignments'
|
||||
URL_SUMMARY = URL_API_ROOT + '/summary'
|
||||
URL_SUMMARY = URL_API_ROOT + '/summary'
|
||||
URL_SUBJECTS = URL_API_ROOT + '/subjects/{subject_id}'
|
||||
|
||||
|
||||
def _setup_cache(session):
|
||||
requests_util.setup_limiter(
|
||||
session,
|
||||
|
@ -63,6 +64,7 @@ class WaniKaniLessonsFetcher(Scraper):
|
|||
yield data_item
|
||||
url = json_resp.get('pages', {}).get('next_url')
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class WaniKaniSummaryFetcher(Scraper):
|
||||
dataset_name: str = 'wanikani_summary'
|
||||
|
|
Loading…
Reference in New Issue
Block a user