Skip to content

Alexander Glushkov's solution#388

Open
cutalion wants to merge 8 commits into
serpapi:masterfrom
cutalion:master
Open

Alexander Glushkov's solution#388
cutalion wants to merge 8 commits into
serpapi:masterfrom
cutalion:master

Conversation

@cutalion

@cutalion cutalion commented Jun 7, 2026

Copy link
Copy Markdown

The parser finds thumbnails and works outward from there:

  • finds the link around the thumbnail
  • reads name/date from the text divs in that link
  • gets the thumbnail from the tag for visible images,
    or by id from the page's JS for deferred ones

Works on other carousels too (books, movies, TV, a non-English page),
since it relies on structure, not the actual content.

Run the tests:

bundle
bundle exec rspec

Exact-match test against the provided JSON:
spec/integration/carousel_parser_spec.rb

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