How to use pygooglenews with ScrapingBee

Every function has scrapingbee parameter. It accepts your ScrapingBee API key that will be used to get the response from Google's servers.

You can take a look at what exactly is happening in the source code: check for __scaping_bee_request() function under GoogleNews class

Pay attention to the concurrency of each plan at ScrapingBee

How to use example:

gn = GoogleNews()

# it's a fake API key, do not try to use it

How to use pygooglenews with proxies

So, if you have your own HTTP/HTTPS proxy(s) that you want to use to make requests to Google, that's how you do it:

gn = GoogleNews()

gn.top_news(proxies = {'https':''})

Last updated