This commit is contained in:
deathbybandaid 2019-06-14 10:55:36 -04:00
parent cb45a2a305
commit d99e96386f

View File

@ -36,11 +36,11 @@ class Google():
lookfor = data.replace(':', '%3A')
try:
if searchtype == 'info':
var = requests.get(r'https://www.youtube.com/search?q=' + lookfor + '&btnI', headers=header)
var = requests.get(r'http://www.google.com/search?q=' + lookfor + '&btnI', headers=header)
elif searchtype == 'maps':
var = requests.get(r'http://www.google.com/maps/place/' + lookfor, headers=header)
elif searchtype == 'youtube':
var = requests.get(r'http://www.google.com/search_query?q=' + lookfor + '&btnI', headers=header)
var = requests.get(r'https://www.youtube.com/search?q=' + lookfor + '&btnI', headers=header)
else:
var = requests.get(r'http://www.google.com/search?q=' + lookfor + '&btnI', headers=header)
except Exception as e: