2 # Extract Latin famous phrases from wikipedia
5 from bs4 import BeautifulSoup
8 url = 'https://en.wikipedia.org/wiki/List_of_Latin_phrases_(full)'
9 response = requests.get(url)
10 html = response.content
12 soup = BeautifulSoup(html, "html.parser")
13 list_table = soup.find_all("table", attrs={"class":"wikitable"})
14 f = open("phrases", "w")
16 for table in list_table:
17 for row in table.find_all("tr")[1:]:
19 cell = row.find_all("td")
21 text = content.get_text()