added new files

This commit is contained in:
Joe Steele
2024-02-10 15:34:13 -05:00
parent 1e1fd423f5
commit 9ef1133263
2 changed files with 107 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# 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("------")