diff --git a/README.md b/README.md index b80faba..7d7eefc 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ The scripts in this directory together form the "osmtools" suite. Originally written by Frederik Ramm , public domain. -The scripts require Perl and the LWP module (libwww-perl on Ubuntu et al.). +The scripts require Perl and the LWP module. On Ubuntu, that would be: +sudo apt install libwww-perl libfile-homedir-perl libterm-readkey-perl libbytes-random-secure-perly Package Contents ---------------- diff --git a/download_changesets.sh b/download_changesets.sh index a8fab14..f6ce2bf 100644 --- a/download_changesets.sh +++ b/download_changesets.sh @@ -6,7 +6,7 @@ # therefore loop required USER=$1 -SINCE=2023-06-25T20:00:00 +SINCE=2013-11-01T00:00:00 # no user servicable parts below. run this in empty directory # and you'll end up with tons of files called c1234.osc (one diff --git a/download_changesets_uid.sh b/download_changesets_uid.sh index c0d8776..a150f65 100644 --- a/download_changesets_uid.sh +++ b/download_changesets_uid.sh @@ -17,14 +17,30 @@ export T EX=0 export EX +# There are two loops here. We exit the outer one if we try +# to obtain some changesets and fail to do so +# ("EX=1" means "exit the outer loop"). +# The inner loop is just determined by reading the list. + while [ $EX = 0 ] do - wget -Olist "https://api.openstreetmap.org/api/0.6/changesets?user=$UID&time=$SINCE,$T" - T=`grep "