-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
H Ashaywalke,
can you explain in detail about this
def extract_information(string):
string.replace (" ", "+")
query = string
soup = BeautifulSoup(urlopen("https://en.wikipedia.org/wiki/" + query), "html.parser")
#creates soup and opens URL for Google. Begins search with site:wikipedia.com so only wikipedia
#links show up. Uses html parser.
for item in soup.find_all('div', attrs={'id' : "mw-content-text"}):
print(item.find('p').get_text())
print('\n')
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels