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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user