Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 660 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 660 Bytes

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