Skip to content

Serp API Code Challenge#282

Closed
farzinadil wants to merge 6 commits into
serpapi:masterfrom
farzinadil:master
Closed

Serp API Code Challenge#282
farzinadil wants to merge 6 commits into
serpapi:masterfrom
farzinadil:master

Conversation

@farzinadil

Copy link
Copy Markdown

This solution uses Python and BeautifulSoup to parse the HTML.

In hindsight, getting each carousel item and using regex to find the relevant data might be better than looking for certain elements/attributes. This solution uses regex to find the image source but looks for HTML elements/attributes for the rest of the data.

The instructions for how to run are in the README.

The test compares the generated output to expected-array.json. The other 2 HTML files are warriors.html and 49ers-players.html

@andypple83 andypple83 closed this Dec 29, 2024
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.

2 participants