mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
youtube
This commit is contained in:
parent
cb45a2a305
commit
d99e96386f
@ -36,11 +36,11 @@ class Google():
|
|||||||
lookfor = data.replace(':', '%3A')
|
lookfor = data.replace(':', '%3A')
|
||||||
try:
|
try:
|
||||||
if searchtype == 'info':
|
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':
|
elif searchtype == 'maps':
|
||||||
var = requests.get(r'http://www.google.com/maps/place/' + lookfor, headers=header)
|
var = requests.get(r'http://www.google.com/maps/place/' + lookfor, headers=header)
|
||||||
elif searchtype == 'youtube':
|
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:
|
else:
|
||||||
var = requests.get(r'http://www.google.com/search?q=' + lookfor + '&btnI', headers=header)
|
var = requests.get(r'http://www.google.com/search?q=' + lookfor + '&btnI', headers=header)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user