Oops, url is loaded via JS :(

This commit is contained in:
2023-03-22 23:47:57 -04:00
parent 98f9c4bc04
commit 945776b885

View File

@ -29,7 +29,7 @@ def get_url_from_soup(soup) -> Optional[int]:
try: try:
url_tag = soup.find("div", class_="AZqljb JSLBqe") url_tag = soup.find("div", class_="AZqljb JSLBqe")
if url_tag: if url_tag:
url = url_tag["data-feed"] url = url_tag.get("data-feed")
except ValueError: except ValueError:
pass pass
return url return url