Skip to content

harryshi10/world_city_population

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

World_City_Population

get city and it's country's population via wiki

What it will do

give city's population, the country it belongs to and the country's population. Data source is from wiki
image

Dependency

python 2
pandas
beautifulsoup4

Install

install pandas and beautifulsoup4 if you don't have them in your python environment
pip install pandas
pip install beautifulsoup4

User guide

set CITY_LIST_FILE point to your city_list.txt file
set OUTPUT_FILE point to where you want to output result
run python fetch_city.py

About

get city and it's country's population via wiki

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages