Open olivierobert opened 1 year ago
I ran into issues while using the kimurai gem for scraping. As it turns out the gem does not offer support for rail 3.x. So I hard coded the results to complete the application.
Have you tried using https://rubygems.org/gems/nokogiri instead? This gem is the standard to parse HTML.
Issue
Scraping data is currently hardcoded:
https://github.com/owaisrazaeng1/nimble-test/blob/a057d841097bc3a45158ecb89a882f924e4c4f69/app/services/Scraper/google_scraper_service.rb#L21-L26
As a result, the same data would be stored for all keywords.
Expected
Scraping data must be scraped from the HTML content of the search result page. The right selectors must be used to retrieve the wanted pieces of information.