{"repo":"christophebe/serp","free":true,"listed":false,"github":"https://github.com/christophebe/serp","clone":"git clone https://github.com/christophebe/serp.git","description":"Google Search SERP Scraper","language":"JavaScript","stars":137,"topics":["serps","google","scraper","serp","seo"],"license":null,"category":"scrapers-browser-automation","readme_excerpt":"serp This module allows to get the result of a Google search based on a keyword. It provides different options for scraping the google results called SERP (Search Engine Result Page) : - delay between requests - retry if error - with or without proxy, proxies or scrape API. This module uses Playwright in order to accept the cookie consent popup before making a new search. Installation Simple usage Understanding the options structure : - For google.com, the param host is not necessary. - qs can contain the usual Google search parameters : https://moz.com/ugc/the-ultimate-guide-to-the-google-search-parameters. - options.qs.q is the keyword - num is the number of desired results (defaut is 10). Delay between requests It is possible to add a delay between each request made on Google with the option delay (value in ms). The delay is also applied when the tool read the next result page on Google. Retry if error If an error occurs (timeout, network issue, invalid HTTP status, ...), it is possible to retry the same request on Google. If a proxyList is set into the options, another proxy will be used. Get the number of results You can get the number of indexed pages in Google by using the following code. With proxy You can add the proxy reference in the options With multiple proxies You can also use the module simple proxy if you have several proxies (see : https://github.com/christophebe/simple-proxies). In this case, a different proxies (choose randomly) will be used of each serp.se","default_branch":null,"files":null,"tree":[],"storefront":"/r/christophebe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/christophebe/serp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}