# Last edited on 2013-03-02 03:15:38 by stolfilocal FETCHING MY OBJECTS See contribs/00-Notebook.txt for how to obtain the list of Wikimapia ID's for my objects. The list is contribs/All-Objects.txt Get all IDs: cat contribs/All-Objects.txt \ | gawk \ ' BEGIN { FS = "|"; } /^.*[!].*[!].*[!].*[!].*$/ { next } /^ *[-]*[+][-]*[+][-]*[+][-]*[+] *$/ { next } /^[ ]*([\#]|$)/ { next } /[|]/ { dir=$1; gsub(/[ ]/, "", dir); obj=$2; gsub(/[ ]/, "", obj); if (dir != "") { dir = (dir "/"); } printf "%s%s\n", dir, obj; next; } // { printf "**bug\n [%s]\n", $0 > "/dev/stderr"; exit 1; } ' \ | revbytes | sort | revbytes \ > .all-ids Fetch them: for id in `cat .all-ids | egrep -v -e '[\/]'` ; do fname="${id}" echo "fetching ${id} to obj/${fname}.xml" get-wm-object.sh ${id} ${id} sleep 10s done