Compare commits

...

2 Commits

Author SHA1 Message Date
Stijn De Clercq baa3478cec
Merge pull request #51 from stijndcl/fix_google
Fix google search
2021-04-21 09:45:10 +02:00
Stijn De Clercq f76d70c169 Fix google search 2021-04-21 09:44:26 +02:00
1 changed files with 1 additions and 6 deletions

View File

@ -35,12 +35,7 @@ def google_search(query):
if link is None or title is None:
return None
sp = title.find("span")
if sp is None:
return None
return link["href"], sp.text
return link["href"], title.text
divs = bs.find_all("div", attrs={"class": "g"})