I made a python code to scrape the content of the news articles which searched by keywords on Google news.
def __init__(self,term):
self.term = term
self.url ='https://www.google.com/search?q={0}&source=lnms&tbm=nws'.format(self.term)
response = requests.get(self.url)
This code can only get the contents of the first page searched by keywords. I wonder how can I change my code to get second, third or even more pages?
Our systems have detected unusual traffic from your computer network. This page checks to see if it's really you sending the requests, and not a robot. This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the Terms of Service. Is there a way to solve the problem? – David Guo Apr 06 '19 at 18:53