mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 04:55:57 +01:00
...
This commit is contained in:
parent
0f3c3c85ba
commit
d245b747ae
1 changed files with 2 additions and 0 deletions
|
|
@ -67,6 +67,8 @@ def get_image_urls(self, title, author, log, abort, timeout):
|
|||
sz = 'isz:l,'
|
||||
else:
|
||||
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)
|
||||
log('Search URL: ' + url)
|
||||
raw = br.open(url).read().decode('utf-8')
|
||||
|
|
|
|||
Loading…
Reference in a new issue