Can no longer scrape google
sevmardi opened this issue · comments
Sevak Mardirosian commented
Can anyone confirm this issue please ?
gateway = ApiGateway("https://www.google.com",access_key_id='123', access_key_secret='12)
gateway.start()
session = requests.Session()
session.mount("https://www.google.com", gateway)
response = session.get("http://www.google.com/search?q=barry+bonds&tbm=nws&hl=en&num=10")
soup = BeautifulSoup(response.text, "html.parser")
result_stats = soup.select_one("div#result-stats")
result_stats = result_stats.get_text().strip().lower()
print(result_stats)
basically returns None
.
Did bunch of other tests, the results are the same. You think google blocked aws ips?