Skip to content

Instantly share code, notes, and snippets.

@174n
Created January 16, 2021 08:31
Show Gist options
  • Save 174n/e63ec8240901730b47277e9a88b92365 to your computer and use it in GitHub Desktop.
Save 174n/e63ec8240901730b47277e9a88b92365 to your computer and use it in GitHub Desktop.
Google Street View panoramas downloader
echo "" > files.txt
for i in {0..12}
do
for j in {0..5}
do
printf "https://geo3.ggpht.com/cbk?cb_client=maps_sv.tactile&authuser=0&hl=de&gl=de&panoid=%s&output=tile&x=%d&y=%d&zoom=4&nbt&fover=2\n\tout=images/%d_%d.png\n" $1 $i $j $i $j >> files.txt
done
done
mkdir images
aria2c -q -i files.txt -j 3
montage $(ls -1 images | sort -g | xargs -I % echo "images/%") -tile 1x6 -geometry +0+0 miff:- | montage - -geometry +0+0 -tile 13x1 out.jpg
rm -rf images
rm files.txt
@174n
Copy link
Author

174n commented Jan 16, 2021

You need to install aria2 and imagemagick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment