In [1]:
import requests
In [2]:
from bs4 import BeautifulSoup
In [3]:
r = requests.get('https://www.englishclub.com/esl-handouts/cardinal-ordinal.htm')
In [4]:
soup = BeautifulSoup(r.content,'lxml')
In [25]:
x = []
y = []
for tr in soup.findAll('tr')[2:]:
td = tr.findAll('td')
x.append(td[3].text)
y.append(td[1].text)
In [26]:
y
Out[26]:
In [ ]: