Need to use a tag, not div

This commit is contained in:
2023-03-23 00:26:54 -04:00
parent d2d81f7119
commit ede4767a39
2 changed files with 3 additions and 2 deletions

View File

@ -33,7 +33,7 @@ def _get_title_from_soup(soup) -> Optional[int]:
def _get_url_from_soup(soup) -> Optional[int]:
url = None
try:
url_tag = soup.find("div", class_="yXo2Qc")
url_tag = soup.find("a", class_="yXo2Qc")
if url_tag:
url = _build_google_url(url_tag.get("href"))
except ValueError: