Untitled
unknown
plain_text
3 years ago
444 B
0
Indexable
Never
import requests from bs4 import BeautifulSoup r = requests.get("https://www.letour.fr/en/rankings/stage-1") soup = BeautifulSoup(r.text, 'html5lib') table = soup.find('tbody') riders = table.find_all('tr') for rider in riders: cells = rider.find_all('td') position = cells[0].get_text() name = cells[1].get_text().strip() team = cells[3].get_text().strip() time = cells[4].get_text() print(position, name, team, time)