https://github.com/serpapi/code-challenge
SerpApi code challenge
https://github.com/serpapi/code-challenge
Last synced: 8 months ago
JSON representation
SerpApi code challenge
- Host: GitHub
- URL: https://github.com/serpapi/code-challenge
- Owner: serpapi
- License: mit
- Created: 2019-03-15T19:40:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-16T02:04:48.000Z (about 1 year ago)
- Last Synced: 2025-06-06T05:15:55.535Z (8 months ago)
- Language: HTML
- Size: 4.69 MB
- Stars: 22
- Watchers: 5
- Forks: 308
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Extract Van Gogh Paintings Code Challenge
Goal is to extract a list of Van Gogh paintings from the attached Google search results page.

## Instructions
This is already fully supported on SerpApi. ([relevant test], [html file], [sample json], and [expected array].)
Try to come up with your own solution and your own test.
Extract the painting `name`, `extensions` array (date), and Google `link` in an array.
Fork this repository and make a PR when ready.
Programming language wise, Ruby (with RSpec tests) is strongly suggested but feel free to use whatever you feel like.
Parse directly the HTML result page ([html file]) in this repository. No extra HTTP requests should be needed for anything.
[relevant test]: https://github.com/serpapi/test-knowledge-graph-desktop/blob/master/spec/knowledge_graph_claude_monet_paintings_spec.rb
[sample json]: https://raw.githubusercontent.com/serpapi/code-challenge/master/files/van-gogh-paintings.json
[html file]: https://raw.githubusercontent.com/serpapi/code-challenge/master/files/van-gogh-paintings.html
[expected array]: https://raw.githubusercontent.com/serpapi/code-challenge/master/files/expected-array.json
Add also to your array the painting thumbnails present in the result page file (not the ones where extra requests are needed).
Test against 2 other similar result pages to make sure it works against different layouts. (Pages that contain the same kind of carrousel. Don't necessarily have to be paintings.)
The suggested time for this challenge is 4 hours. But, you can take your time and work more on it if you want.