feat: Add Comics and Manga categories to Bookys scraper

Both share the BD page structure (20 items/page, ?page=N, .bys-item links),
so this is just two new CATEGORIES entries; the UI dropdown and URL builder
pick them up automatically. Note the site uses singular "comic" in the path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVJc2XuTvqBHSuqotetseS
This commit is contained in:
Louis Mylle
2026-07-28 22:27:13 +02:00
parent 9f548309f8
commit 37a6e2ad09
2 changed files with 11 additions and 1 deletions

View File

@@ -26,12 +26,22 @@ import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
# Category slug -> listing path on the site. Only BD is enabled for now.
# Category slug -> listing path on the site. All share the same page structure
# (20 items per page, ?page=N pagination, .bys-item links), so adding one is
# just a new entry here - the rest of the scraper and the UI adapt automatically.
CATEGORIES = {
"bd": {
"name": "Bandes dessinées (BD)",
"path": "bandes-dessinees/bd",
},
"comic": {
"name": "Comics",
"path": "bandes-dessinees/comic", # note: singular "comic" on the site
},
"manga": {
"name": "Manga",
"path": "bandes-dessinees/manga",
},
}
BASE_DOMAIN = "https://www7.bookys-ebooks.com"