Jednoduchý program na stiahnutie búd zo stránky http://boudy.info a ich uloženie vo formáte GPX.
Ukladané sú len búdy s presnou polohou a búdy s polohou odčítanou z mapy. Búdy s približnou polohou sú ignorované.
Simple program to get huts from http://boudy.info and save them in GPX format.
Only huts with accurate location and map based location are saved. Huts with aproximate location are ignored.
bs4
retryz
argparse
usage: ./boudy2gpx.py [-h] [-u URL] [-o OUTFILENAME] [-t TIMEOUT] [-r RETRIES]
[-v]
optional arguments:
-h, --help show this help message and exit
-u URL, --url URL url
-o OUTFILENAME, --output OUTFILENAME
Output file. If not specified, then stdout
-t TIMEOUT, --timeout TIMEOUT
HTTP request timeout
-r RETRIES, --retries RETRIES
Number of attempts to get hut
-v, --verbose Verbose