Scraping/Parsing Google search results in Ruby

前端 未结 6 692
滥情空心
滥情空心 2021-01-01 05:37

Assume I have the entire HTML of a Google search results page. Does anyone know of any existing code (Ruby?) to scrape/parse the first page of Google search results? Ideal

6条回答
  •  猫巷女王i
    2021-01-01 05:52

    I don't know Ruby specific code but this google scraper could help you. That's an online tool demo that works scraping and parsing Google results. The most interesting thing is the article there with the explanation of the parsing process in PHP but it's applicable to Ruby and any other programming language.

提交回复
热议问题