1
0
This commit is contained in:
Jon Michael Aanes 2025-03-24 20:25:30 +01:00
parent ff12a6450b
commit cd62c9dc3f

View File

@ -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'