Skip to content

Commit 4727e4b

Browse files
committed
Annotate that currently all search engine backends are non functional due to CAPTCHAs
1 parent bfb2f52 commit 4727e4b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/calibre/ebooks/metadata/sources/search_engines.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from calibre.utils.lock import ExclusiveFile
3232
from calibre.utils.random_ua import accept_header_for_ua
3333

34-
current_version = (1, 2, 14)
34+
current_version = (1, 2, 15)
3535
minimum_calibre_version = (2, 80, 0)
3636
webcache = {}
3737
webcache_lock = Lock()
@@ -116,7 +116,7 @@ def quote_term(x):
116116
return ans
117117

118118

119-
# DDG + Wayback machine {{{
119+
# DDG + Wayback machine DDG does a captcha after 2-3 requests {{{
120120

121121
def ddg_url_processor(url):
122122
return url
@@ -134,7 +134,7 @@ def ddg_term(t):
134134
def ddg_href(url):
135135
if url.startswith('/'):
136136
q = url.partition('?')[2]
137-
url = parse_qs(q.encode('utf-8'))['uddg'][0].decode('utf-8')
137+
url = parse_qs(q.encode('utf-8'))[b'uddg'][0].decode('utf-8')
138138
return url
139139

140140

@@ -207,7 +207,7 @@ def ddg_develop():
207207
# }}}
208208

209209

210-
# Bing {{{
210+
# Bing uses a CAPTCHA {{{
211211

212212
def bing_term(t):
213213
t = t.replace('"', '')
@@ -278,7 +278,7 @@ def bing_develop(terms='heroes abercrombie'):
278278
# }}}
279279

280280

281-
# Google {{{
281+
# Google only serves JS enabled search pages as of Sep 11, 2025 {{{
282282

283283
def google_term(t):
284284
t = t.replace('"', '')
@@ -433,7 +433,7 @@ def google_develop(search_terms='1423146786', raw_from=''):
433433
# }}}
434434

435435

436-
# Yandex {{{
436+
# Yandex uses a CAPTCHA {{{
437437
def yandex_term(t):
438438
t = t.replace('"', '')
439439
if t in {'OR', 'AND', 'NOT'}:

0 commit comments

Comments
 (0)