Web scraping with Python. Get href from "a" elements
Web scraping with Python. Get href from "a" elements Question: With the following code I can get all data from the noted number of pages at the given URL: import pandas as pd F, L = 1, 2 # first and last pages dico = {} for page in range(F, L+1): url = f’https://www.worldathletics.org/records/all-time-toplists/middle-long/one-mile/indoor/men/senior?regionType=world&page={page}&bestResultsOnly=false&oversizedTrack=regular&firstDay=1899-12-31&lastDay=2023-02-17′ sub_df …