gis doc
This commit is contained in:
parent
f0d61e61d9
commit
e328ff1bbb
|
@ -6,6 +6,10 @@ import hook
|
||||||
|
|
||||||
@hook.command
|
@hook.command
|
||||||
def gis(inp):
|
def gis(inp):
|
||||||
|
'''.gis <term> -- returns first google image result (safesearch off)'''
|
||||||
|
if not inp:
|
||||||
|
return gis.__doc__
|
||||||
|
|
||||||
req_url = 'http://ajax.googleapis.com/ajax/services/search/images?' \
|
req_url = 'http://ajax.googleapis.com/ajax/services/search/images?' \
|
||||||
'v=1.0&safe=off&q='
|
'v=1.0&safe=off&q='
|
||||||
url = req_url + urllib.quote(inp, safe='')
|
url = req_url + urllib.quote(inp, safe='')
|
||||||
|
|
Loading…
Reference in New Issue