A Ruby command line to tool to scrape Google Suggest
Clone the repo or download zip file, use it locally or upload it to whatever hosting you want.
- Ruby 2.4.0
- Nokogiri
Install the Nokogiri ruby gem via Bundler using bundle install
. Then, just run :
ruby scraper.rb [options]
Options :
- -q : keyword ("iphone" for example)
- -l : language ("fr", "en", etc.)
- -g : location ("FR", "DE", etc.)
Enter a keyword and, optionaly, a language ("fr" is the default language) and/or a country ("FR" is the defaut location). The tool will fetch all suggestions from Google Suggest and store them in a plan text file.
Maybe you will have to use proxies if the keyword you choose generate lots of suggestions, because Google is likely to ban your IP.
Google Suggest Scraper is open-sourced software licensed under the MIT license.