8000 GitHub - LeStegii/iso-country-codes: Script for getting a list of ISO 3166-1 alpha-2 country codes from wikipedia using python.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

LeStegii/iso-country-codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🌍 ISO Scraper

A very simple script for scraping the current list of ISO 3166-1 alpha-2 country codes and their names from Wikipedia.

As this scrapes Wikipedia, which is always evolving, the script may break if the structure of the page changes.

Installation and Usage

pip install -r requirements.txt
python3 iso_scraper.py > iso_codes.csv

Output

The script will print any output to STDOUT, which can be redirected to a file. The output will be in CSV format with the following columns:

AD,Andorra
AE,United Arab Emirates
AF,Afghanistan
AG,Antigua and Barbuda
AI,Anguilla
...

About

Script for getting a list of ISO 3166-1 alpha-2 country codes from wikipedia using python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.
0