mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
...
This commit is contained in:
parent
0f3c3c85ba
commit
d245b747ae
@ -67,6 +67,8 @@ class GoogleImages(Source):
|
|||||||
sz = 'isz:l,'
|
sz = 'isz:l,'
|
||||||
else:
|
else:
|
||||||
sz = 'isz:lt,islt:%s,' % sz
|
sz = 'isz:lt,islt:%s,' % sz
|
||||||
|
# See https://www.google.com/advanced_image_search to understand this
|
||||||
|
# URL scheme
|
||||||
url = 'https://www.google.com/search?as_st=y&tbm=isch&as_q={}&as_epq=&as_oq=&as_eq=&cr=&as_sitesearch=&safe=images&tbs={}iar:t,ift:jpg'.format(q, sz)
|
url = 'https://www.google.com/search?as_st=y&tbm=isch&as_q={}&as_epq=&as_oq=&as_eq=&cr=&as_sitesearch=&safe=images&tbs={}iar:t,ift:jpg'.format(q, sz)
|
||||||
log('Search URL: ' + url)
|
log('Search URL: ' + url)
|
||||||
raw = br.open(url).read().decode('utf-8')
|
raw = br.open(url).read().decode('utf-8')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user