mirror of https://github.com/stijndcl/didier
Compare commits
No commits in common. "baa3478cecc7c20915c9edd66e4cf352bebd4e70" and "5703ee6fcfa9d4129ba2c0099274f44c0657e1b2" have entirely different histories.
baa3478cec
...
5703ee6fcf
|
@ -35,7 +35,12 @@ def google_search(query):
|
|||
if link is None or title is None:
|
||||
return None
|
||||
|
||||
return link["href"], title.text
|
||||
sp = title.find("span")
|
||||
|
||||
if sp is None:
|
||||
return None
|
||||
|
||||
return link["href"], sp.text
|
||||
|
||||
divs = bs.find_all("div", attrs={"class": "g"})
|
||||
|
||||
|
|
Loading…
Reference in New Issue