mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
youtube
This commit is contained in:
parent
cb45a2a305
commit
d99e96386f
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user