Skip to content

Commit

Permalink
fix: appagg changed site layout (#281)
Browse files Browse the repository at this point in the history
Signed-off-by: Eiko Wagenknecht <git@eiko-wagenknecht.de>
  • Loading branch information
eikowagenknecht committed Oct 26, 2023
1 parent c73574a commit d6b16fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lootscraper/scraper/google_games.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit d6b16fb

Please sign in to comment.