Skip to content

Instantly share code, notes, and snippets.

import requests
from lxml import html
url = 'https://en.wikipedia.org/wiki/Most_common_words_in_English'
words = []
r = requests.get(url)
html_source = r.text
tree = html.fromstring(html_source)
rows = tree.xpath('//tr')