https://www.jwz.org/hacks/galdown
Given a URL of a photo gallery, this downloads the largest versions of all of the photos.
- Flickr
- Picasa
- OvaHere
- Google Drive
- SF Weekly (and related sites)
-
and sites using SmugMug or Zen Folio
Tested 2016-03-18 on Lubuntu - Tested and works for instagram, but I couldn't get proper filenames.
Spoiler
Can't locate JSON/Any.pm in @INC (you may need to install the JSON::Any module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at ./galdown.pl line 43. BEGIN failed--compilation aborted at ./galdown.pl line 43 (#1) (F) You said to do (or require, or use) a file that couldn't be found. Perl looks for the file in all the locations mentioned in @INC, unless the file name included the full path to the file. Perhaps you need to set the PERL5LIB or PERL5OPT environment variable to say where the extra library is, or maybe the script needs to add the library name to @INC. Or maybe you just misspelled the name of the file. See "require" in perlfunc and lib. Uncaught exception from user code: Can't locate JSON/Any.pm in @INC (you may need to install the JSON::Any module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at ./galdown.pl line 43. BEGIN failed--compilation aborted at ./galdown.pl line 43.
\sudo \apt-get install libjson-perl
.. this didn't help.
Maybe I can install the cpan module myself. I haven't done this in so long that I had to look it up. Perhaps the fucktardedly-verbose error message should have given a hint.
\cpan
(then I pressed <enter>
a bunch of times)
I was given a cpan[1]>
prompt, and I decided to blindly do install JSON::Any
. It seemed to work after restarting my shell.
./galdown.pl https://www.instagram.com/therock/
-
This did not work with https://www.instagram.com/therock/
It just gave me a bunch of garbage files. Examining its source code, I saw a recommendation for exiftool.
\sudo \apt-get install libimage-exiftool-perl
This didn't change anything. I am left with a bunch of files like:
001.2 002.2 003.2 004.l 005.2 006.l 007.l 008.2 009.l 010.2 011.2 012.2 013.2 014.l 015.l 016.l 017.l 018.l 019.l 020.l 021.2
I could rename them and view them, so this is some issue with exiftools I guess. I did not investigate further.
Last updated 2020-06-27 at 16:53:23