diff --git a/web_programming/crawl_google_results.py b/web_programming/crawl_google_results.py index 79b69e71c6b3..30388b52a06c 100644 --- a/web_programming/crawl_google_results.py +++ b/web_programming/crawl_google_results.py @@ -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(link.get('href')) + else: + webbrowser.open(f"http://google.com{link.get('href')}")