This is my solution for the Data Wrangling Challenge for Datopian.
My task was to create a script which would export the data from the 'European Union Road Safety Facts and Figures' table in this Wikipedia article to a CSV file.
As a bonus, I have created this spreadsheet to display an insight on how GDP per capita and Vehicle ownership are related to Road Safety Deaths in the EU.
The repository has a script which generates a CSV file for the EU Road Safety Data and the resulting generated CSV file, aswell as the requirements.txt with the script's dependencies and the datapackage.json for the Tabular Data Package.
- Python 3.7
- Requests Package
- BeautifulSoup Package
Make sure you have Python 3.7 and Pip installed. The repository has a requirements.txt file, so the script's dependencies can be installed through:
- Clone the repository
- Navigate to the folder
- Run: pip install -r requirements.txt
More on this process can be found in this link.