mirror of
https://github.com/stijndcl/didier.git
synced 2026-06-29 01:19:56 +02:00
Compare commits
No commits in common. "baa3478cecc7c20915c9edd66e4cf352bebd4e70" and "5703ee6fcfa9d4129ba2c0099274f44c0657e1b2" have entirely different histories.
baa3478cec
...
5703ee6fcf
1 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue