mirror of
https://github.com/stijndcl/didier.git
synced 2026-06-28 17:09:55 +02:00
Compare commits
2 commits
5703ee6fcf
...
baa3478cec
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
baa3478cec | ||
|
|
f76d70c169 |
1 changed files with 1 additions and 6 deletions
|
|
@ -35,12 +35,7 @@ def google_search(query):
|
||||||
if link is None or title is None:
|
if link is None or title is None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
sp = title.find("span")
|
return link["href"], title.text
|
||||||
|
|
||||||
if sp is None:
|
|
||||||
return None
|
|
||||||
|
|
||||||
return link["href"], sp.text
|
|
||||||
|
|
||||||
divs = bs.find_all("div", attrs={"class": "g"})
|
divs = bs.find_all("div", attrs={"class": "g"})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue