Skip to content

[goodreads] add review and search scrapers - #186

Open
HishamM1 wants to merge 1 commit into
mainfrom
add-goodreads-reviews-search
Open

[goodreads] add review and search scrapers#186
HishamM1 wants to merge 1 commit into
mainfrom
add-goodreads-reviews-search

Conversation

@HishamM1

Copy link
Copy Markdown
Contributor

Extends the existing Goodreads scraper with two capabilities it did not cover.

  • scrape_reviews reads the review sample of a book page from its __NEXT_DATA__ Apollo records
  • scrape_search reuses parse_list, search and list pages share the same table markup
  • adds the scraper README and the root README row, both were missing
  • registers test_review_scraping and test_search_scraping in the CI matrix
  • fixes run.py writing results with the platform encoding, which crashes on review text

pytest test.py passes all 4 tests against the live site.

Reviews come from the __NEXT_DATA__ Apollo records of a book page, search reuses the
list row parser since both pages share the same table markup. Adds the missing scraper
README and root README row, registers both tests in the CI matrix.

Also fixes run.py writing results with the platform encoding, which cannot encode the
non latin characters review text contains.
@HishamM1
HishamM1 requested review from mazen-r August 24, 2026 20:19
@HishamM1 HishamM1 self-assigned this Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant