Get GeoJSON from Wikimapia
py -m venv env
.\env\Scripts\activate
pip install -r requirements.txt
python src/geo_scraper.py "Country name"
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
python src/geo_scraper.py "Country name"
docker build -t geoscraper .
docker run -it -e WIKI_SEARCHNAME="Country name" geoscraper
WIKI_SEARCHNAME
"Location name" to search in [starturl] page.
--starturl
/ WIKI_STARTURL
Wikimapia start url, default to: 'https://wikimapia.org/country/'.
--outdir
/ WIKI_OUTDIR
Output dir for GeoJSON and log files, default to: 'output'.
Python:
python src/geo_scraper.py "Rehovot" --starturl "https://wikimapia.org/country/Israel/Hamerkaz/" --outdir "geo-out"
Docker:
# You can replace '$PWD' with your host output dir
docker run -v "$PWD":/app/output -it \
-e WIKI_SEARCHNAME="Rehovot" \
-e WIKI_STARTURL="https://wikimapia.org/country/Israel/Hamerkaz/" \
geoscraper