We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 540023e commit eb9c145Copy full SHA for eb9c145
web_programming/crawl_google_results.py
@@ -18,5 +18,7 @@
18
links = list(soup.select(".eZt8xd"))[:5]
19
20
print(len(links))
21
- for link in links:
+ if link.text == "Maps":
22
+ webbrowser.open(link.get('href'))
23
+ else:
24
webbrowser.open(f"http://google.com{link.get('href')}")
0 commit comments