Skip to content

A Python script to retrieve all the twinnings of Italian municipalities.

License

Notifications You must be signed in to change notification settings

giovanni-cutri/italian-municipalities-twinnings

Repository files navigation

italian-municipalities-twinnings

This Python script scrapes data from the Italian Wikipedia to get a list of all the twinnings of the Italian municipalities (comuni) between them and the rest of the world.

Data is stored in two CSV files:

  • twinnings.csv is used for municipalities that have at least one twinning and contains the following information:
    • country, region, province and name of the municipality (note that "country" field is always Italy)
    • country and name of the twinned municipality (which can be Italian or foreign)
  • twinningless.csv is used for municipalities that do not currently have any twinnings: it simply stores their country, region, province and name.

An example of SQL query is also available inside the repo: it sorts the municipalities by twinnings count in descending order.

Dependencies

All the necessary libraries are listed in the requirements.txt file.

You can install them by running:

pip install -r requirements.txt

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A Python script to retrieve all the twinnings of Italian municipalities.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages