M
M
moem2018-01-11 20:40:25
data mining
moem, 2018-01-11 20:40:25

How to extract the names of settlements, their coordinates and population from Wikipedia?

Hello.
Please let me know if anyone has faced similar issue.
How can I extract the names of settlements, their coordinates and population using the Wikipedia API or its Wikidata project?
Interested in a sequence of actions like:
- you go to the page ...
- you make a request like ...
- ...
- profit
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
freeExec, 2018-01-11
@moem

We go to WikiDataQ
We cook such a request: We take the
profit.
tinyurl.com/ycwfglzl

D
Dimonchik, 2018-01-11
@dimonchik2013

you find a list of cities (there is usually in English)
you go to the page
and make a request like ([0-9,]+)[^<]+inhabitants< (in brackets and it will be)
profit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question