How can I get a Wikipedia article's text using Python 3 with Beautiful Soup?
14
4
I have this script made in Python 3: response = simple_get("https://en.wikipedia.org/wiki/Mathematics") result = {} result["url"] = url if response is not None: html = BeautifulSoup(response, 'html.parser') title = html.select("#firstHeading")[0].text As you can see I can get the title from the article, but I cannot figure out how to get the text from "Mathematics (from Greek μά..." to the contents table...
python web-scraping beautifulsoup
share | improve this question
edited Dec 17 at 13:43
Boann
36.7k 12 87 121
...