-2

so I was working on some code but kept getting errors and then noticet that my response page is not what I was requesting for but it's google default 'Before you continue to Google Search Google uses cookies and data to:' tab, so please can somebody help me get the correct requested page? thanks in advance

here's code:

import requests

headers = {'User-Agent': 'Mozilla/5.0'}
response = requests.get('https://www.google.com/search?q=vw', headers=headers)
response.raise_for_status()

print(response.text)
Pajder
  • 1
  • 1

0 Answers0