2 Commits
v2.0.0 ... main

Author SHA1 Message Date
Louis Mylle
e33e6c8a53 chore: Update local settings and bookys bytecode
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NVJc2XuTvqBHSuqotetseS
2026-07-29 10:22:51 +02:00
Louis Mylle
37a6e2ad09 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
2026-07-28 22:27:36 +02:00
3 changed files with 18 additions and 2 deletions

View File

@@ -16,7 +16,13 @@
"Bash(.venv/bin/python -c ' *)", "Bash(.venv/bin/python -c ' *)",
"Bash(.venv/bin/python gui_main.py)", "Bash(.venv/bin/python gui_main.py)",
"Skill(claude-in-chrome)", "Skill(claude-in-chrome)",
"Bash(pkill -f \"gui_main.py\")" "Bash(pkill -f \"gui_main.py\")",
"Bash(QT_QPA_PLATFORM=offscreen .venv/bin/python -c ' *)",
"Bash(git add *)",
"Bash(git pull *)",
"Bash(git stash *)",
"Bash(.venv/bin/python -c \"from core.bookys_scraper import CATEGORIES; print\\('categories:', list\\(CATEGORIES\\)\\)\")",
"Bash(git push *)"
] ]
} }
} }

View File

@@ -26,12 +26,22 @@ import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) 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 = { CATEGORIES = {
"bd": { "bd": {
"name": "Bandes dessinées (BD)", "name": "Bandes dessinées (BD)",
"path": "bandes-dessinees/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" BASE_DOMAIN = "https://www7.bookys-ebooks.com"