I am an academic researcher in political science interested in collecting electoral data. This is a fairly straightforward webscrape task of a static webpage. I am requiring that you provide, along with the output, the Python 3 code which reproduces the output.
I have about 1000 URLs from the website [url removed, login to view] from which I need certain information extracted. Each URL contains information about an election. I have provided an example of all of the information I would like for each race in the attached spreadsheet example.csv. For this race, I extracted the data by hand; I would like you to provide code that extracts this information for similar pages. I would also like you to provide the CSV which results from running this code for a list of races that I am providing. The list of URLs from which I need information are contained in urls.csv.
Desired output: (1) CSV with each row denoting a CANDIDATE in the election with columns exactly matching the columns provided in example.csv.
Desired output: (2) Python 3 code which I can use to reproduce the CSV in (1).
I am skilled in data science and hence scrapping is easy for me. I will do the scrapping in two days and send the results and the code also. Feel confident assigning me the task