From 877986ed340471835e679216fab42b2da44cb6ea Mon Sep 17 00:00:00 2001 From: Andy Townsend Date: Tue, 16 Aug 2022 16:37:13 +0200 Subject: [PATCH] Add download_changesets_uid.sh , based on download_changesets.sh --- download_changesets_uid.sh | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 download_changesets_uid.sh diff --git a/download_changesets_uid.sh b/download_changesets_uid.sh new file mode 100644 index 0000000..7fb7237 --- /dev/null +++ b/download_changesets_uid.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +# script to download all changesets of one user since +# a given date (to get ALL, set date to before their signup) +# API currently limited to listing max. 100 changesets, +# therefore loop required + +UID=0 +SINCE=2011-09-04T01:53:26 + +# no user servicable parts below. run this in empty directory +# and you'll end up with tons of files called c1234.osc (one +# for each changeset) + +T=`date -u +%Y-%m-%dT%H:%M:%S` +export T + +while true +do + +wget -Olist "https://api.openstreetmap.org/api/0.6/changesets?user=$UID&time=$SINCE,$T" +T=`grep "