feat: add book scraping (Douban via Playwright + Goodreads + Google Books)

- scrape.py: Douban scraping with Playwright (multi-strategy browser launch)
- scrape.py: Goodreads scraping with requests + BeautifulSoup
- scrape.py: Google Books API + Open Library as fallback
- bookshelf.py: add 'fetch' subcommand (ISBN / Douban URL / GR URL)
- Fix Douban #info parsing using span.pl tags
- Add requirements.txt (requests, beautifulsoup4, playwright)
This commit is contained in:
kai
2026-03-25 14:20:12 +08:00
parent e87be58ba3
commit 8c8095d9ac
4 changed files with 635 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
requests>=2.31.0
beautifulsoup4>=4.12.0
playwright>=1.40.0