Skip to content
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion web_programming/crawl_google_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@

print(len(links))
for link in links:
webbrowser.open(f"http://google.com{link.get('href')}")
if link.text == "Maps":
webbrowser.open(f"{link.get('href')}")
else:
webbrowser.open(f"http://google.com{link.get('href')}")