mirror of https://github.com/stijndcl/didier
Compare commits
2 Commits
5703ee6fcf
...
baa3478cec
Author | SHA1 | Date |
---|---|---|
Stijn De Clercq | baa3478cec | |
Stijn De Clercq | f76d70c169 |
|
@ -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"})
|
||||
|
||||
|
|
Loading…
Reference in New Issue