From d900ed30209ffe81093ae44a7a2099bf2b4cf63f Mon Sep 17 00:00:00 2001 From: ConstrictM <87558008+ConstrictM@users.noreply.github.com> Date: Wed, 26 Jan 2022 22:52:39 -0500 Subject: [PATCH] Fix Google Search Engine Results --- src/calibre/ebooks/metadata/sources/search_engines.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/metadata/sources/search_engines.py b/src/calibre/ebooks/metadata/sources/search_engines.py index 534928a369..a0734c0064 100644 --- a/src/calibre/ebooks/metadata/sources/search_engines.py +++ b/src/calibre/ebooks/metadata/sources/search_engines.py @@ -20,7 +20,7 @@ from calibre import browser as _browser, prints, random_user_agent from calibre.utils.monotonic import monotonic from calibre.utils.random_ua import accept_header_for_ua -current_version = (1, 0, 8) +current_version = (1, 0, 9) minimum_calibre_version = (2, 80, 0) @@ -252,7 +252,7 @@ def google_parse_results(root, raw, log=prints): cache_url_map = google_extract_cache_urls(raw) # print('\n'.join(cache_url_map)) ans = [] - for div in root.xpath('//*[@id="search"]//*[@id="rso"]//*[@class="g"]'): + for div in root.xpath('//*[@id="search"]//*[@id="rso"]//*[@class="kWxLod"]'): try: a = div.xpath('descendant::a[@href]')[0] except IndexError: