CostelDum / photograbber

Automatically exported from code.google.com/p/photograbber
Other
0 stars 0 forks source link

Patch: download single album of a friend #89

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This isn't an issue, but I wasn't sure how to submit a patch. Here's a version 
that lets you select a single album of a friend, and only download that. It's 
rough around the edges but it does work. I don't have time to clean it up right 
now, but I've attached the changed files, along with diffs.

I've only tested it insofar as it worked for me once... but it's fairly 
straightforward.

Original issue reported on code.google.com by roy...@gmail.com on 24 Oct 2011 at 11:21

Attachments:

GoogleCodeExporter commented 8 years ago
I have not tested or tried applying this patch, but I updated the title of the 
issue so it will be easier for others to find if they are looking for this 
feature.  Thank you for your submission!

Original comment by to...@ourbunny.com on 29 Apr 2012 at 6:20

GoogleCodeExporter commented 8 years ago
Could this feature (getting one album only of a friends) be added to the full 
application?

Original comment by leigh...@gmail.com on 29 Jul 2012 at 12:12

GoogleCodeExporter commented 8 years ago
Just for others to find this easier ...
The feature to download a single album was added with v2.100, but it's 
available only from the command line interface for now.
See: http://follow.ourbunny.com/post/50874473404/photograbber-changes

To use it, you need the numeric ID of the album you want to download.
You can get it both via PhotoGrabber or simply by visiting the album and 
fetching the ID from the URL.

Method#1: via PhotoGrabber

a.) First list the numeric IDs of your friends with this:
pg.py --cmd --list-targets friends

(or see PG's help ("pg.py --help") for other values for the "--list-targets" 
option)

b.) List the albums of your selected friend:
pg.py --cmd --token FacebookToken --list-albums UserID

(this time you can use the same token -substitute it in place of 
"FacebookToken"- that you got in step#1 ... and of course use the UserID that 
you picked in step#1 as well)

c.) Download the album:
pg.py --cmd --token FacebookToken --album AblumID --dir "$HOME/Downloads/Album"

(note that the directory specified with the "--dir" option must already exist)

Original comment by zsolt.mu...@gmail.com on 29 Jun 2014 at 7:27

GoogleCodeExporter commented 8 years ago
Method#2 (to get an album's ID):

a.) Visit the album in Facebook.
It'll have an URL like this:
https://www.facebook.com/exampleuser/media_set?set=a.10837657234745623.104834674
7.747274662&type=3

b.) The UserID is the 3rd number in the URL (it's 747274662 in the above 
example), the AlbumID is the first number (it's 10837657234745623 in the 
example). You only need the AlbumID.

To download the album, you just need one PG invocation:
pg.py --cmd --album AblumID --dir "$HOME/Downloads/Album"

Original comment by zsolt.mu...@gmail.com on 29 Jun 2014 at 7:31

GoogleCodeExporter commented 8 years ago
Why does this seem to download a lower resolution file? When i download by 
going to the web page ..its a higher resolution.

Original comment by nkark...@arista.com on 12 Aug 2014 at 7:00