From 46a098c4958816006680fccfbfbe32eede118331 Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Mon, 25 Mar 2024 14:14:52 -0400 Subject: [PATCH] Delete google2.py --- google2.py | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 google2.py diff --git a/google2.py b/google2.py deleted file mode 100644 index 97be592..0000000 --- a/google2.py +++ /dev/null @@ -1,28 +0,0 @@ - -# Import the beautifulsoup -# and request libraries of python. -import requests -import bs4 - -# Make two strings with default google search URL -# 'https://google.com/search?q=' and -# our customized search keyword. -# Concatenate them -text= "joe" -url = "https://www.google.com/maps/contrib/109274792898041753066/reviews" - -# Fetch the URL data using requests.get(url), -# store it in a variable, request_result. -request_result=requests.get( url ) - -# Creating soup from the fetched request -soup = bs4.BeautifulSoup(request_result.text, - "html.parser") -#print(soup) -heading_object=soup.find_all( 'h3' ) - -# Iterate through the object -# and print it as a string. -for info in heading_object: - print(info.getText()) - print("------") \ No newline at end of file