From d6b16fbc28f578a08e61d477c4cc7f118cb25eb2 Mon Sep 17 00:00:00 2001 From: Eiko Wagenknecht Date: Thu, 26 Oct 2023 13:04:28 +0200 Subject: [PATCH] fix: appagg changed site layout (#281) Signed-off-by: Eiko Wagenknecht --- src/lootscraper/scraper/google_games.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lootscraper/scraper/google_games.py b/src/lootscraper/scraper/google_games.py index 2fc1b19..cd2762b 100644 --- a/src/lootscraper/scraper/google_games.py +++ b/src/lootscraper/scraper/google_games.py @@ -64,11 +64,11 @@ async def read_raw_offer(self, element: Locator) -> RawOffer: # Scroll into view for images to load await element.scroll_into_view_if_needed() - title = await element.locator("a.nwel").text_content() + title = await element.locator("li.si_tit a").text_content() if title is None: raise ValueError("Couldn't find title.") - url = await element.locator("a.nwel").get_attribute("href") + url = await element.locator("li.si_tit a").get_attribute("href") if url is None: raise ValueError(f"Couldn't find url for {title}.") if not url.startswith("http"):