Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- from bs4 import BeautifulSoup
- page = requests.get('https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains')
- soup = BeautifulSoup(page.text, 'html.parser')
- for row in soup.find_all('table')[6].tbody.find_all('tr')[1:]:
- column = row.find_all('td')[0].text
- print(column)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement