flickr::backup and RDF
Thanks to the CPAN Perl community, you can get all your Flickr pics as RDF-if you have linux, its just a few steps away.
The relevant documentation:
documentation as Aarons tool and the other tools used. It is minimal, it is simple, it doesn't miss one point.
He has example RDF output and example documentation, how to tie everything together was easy to find out using CPAN.org.
You will need a flickr API key and secret.
At this point, you need also the auth_token of the key, this is trickier to do.
I moved sidewards to get the token, as I coded with flickr before,
I had a PHP application running that I used to get the auth_token.
The php-flickr API was Dan Coulter's phpFlickr Class 2.1.0,
and it has this getToken.php file that you can tweak to do the right thing.
I am sure you can get the same with Perl. Once you got the key, secret, and auth_token, install the libs:
get Perl (well, a typical linux distro depends heavily on Perl, so you probably have it already).
get the CPAN module for Net::Flickr::Backup, I used the perl cpan shell for this (sudo is needed because it installs the perl modules in the shared libs):
Once you have it installed (perl will say if it doesn't), you can run the Backup by writing a script.
I created two files, one for the config, one for the perl that runs:
flickrbackup.config: (note: the aaaaaa are used to hide my secret keys)
runbackup.pl:
Now run the scripts:
Lean back and watch the photos + RDF manifest in your filesystem magically. In this case, RDF as a file format is helpful becaue it allowed Aaron to mix different aspects of the metadata.
You may get an error because some XML library misses, my error message contained
"Can't locate XML/LibXML.pm in @INC"
Luckily, this mailinglist post tells you what to do:
The relevant documentation:
- http://www.aaronland.info/perl/net/flickr/backup/ - docu of Aaron Straup Cope's flickr backup tool
- http://www.flickr.com/services/api/auth.howto.web.html - how to get a flickr key
documentation as Aarons tool and the other tools used. It is minimal, it is simple, it doesn't miss one point.
He has example RDF output and example documentation, how to tie everything together was easy to find out using CPAN.org.
You will need a flickr API key and secret.
At this point, you need also the auth_token of the key, this is trickier to do.
I moved sidewards to get the token, as I coded with flickr before,
I had a PHP application running that I used to get the auth_token.
The php-flickr API was Dan Coulter's phpFlickr Class 2.1.0,
and it has this getToken.php file that you can tweak to do the right thing.
I am sure you can get the same with Perl. Once you got the key, secret, and auth_token, install the libs:
get Perl (well, a typical linux distro depends heavily on Perl, so you probably have it already).
get the CPAN module for Net::Flickr::Backup, I used the perl cpan shell for this (sudo is needed because it installs the perl modules in the shared libs):
> sudo perl -MCPAN -e shell
in the perl shell, install the backup module:
> install Net::Flickr::Backup
Now, it asks you many questions. In my case, pressing return most of the time did a good job.Once you have it installed (perl will say if it doesn't), you can run the Backup by writing a script.
I created two files, one for the config, one for the perl that runs:
flickrbackup.config: (note: the aaaaaa are used to hide my secret keys)
[flickr]
api_key=1025521456c3212a4f84032049cee7a1
api_secret=aaaaaaaaaaaaaaaa
auth_token=aaaaaa-aaaaaaaaaaaaaa
api_handler=LibXML
#[search]
#tags=cameraphone
#per_page=500
[backup]
photos_root=/home/media/photos/flickrbackup
scrub_backups=1
fetch_medium=0
fetch_square=0
force=0
[rdf]
do_dump=1
#rdfdump_root=/home/asc/photos
api_key=1025521456c3212a4f84032049cee7a1
api_secret=aaaaaaaaaaaaaaaa
auth_token=aaaaaa-aaaaaaaaaaaaaa
api_handler=LibXML
#[search]
#tags=cameraphone
#per_page=500
[backup]
photos_root=/home/media/photos/flickrbackup
scrub_backups=1
fetch_medium=0
fetch_square=0
force=0
[rdf]
do_dump=1
#rdfdump_root=/home/asc/photos
runbackup.pl:
use Net::Flickr::Backup;
use Log::Dispatch::Screen;
use Config::Simple;
my $cfg = new Config::Simple(filename=>"flickrbackup.config");
my $flickr = Net::Flickr::Backup->new($cfg);
my $feedback = Log::Dispatch::Screen->new('name' => 'info',
'min_level' => 'info');
$flickr->log()->add($feedback);
$flickr->backup();
use Log::Dispatch::Screen;
use Config::Simple;
my $cfg = new Config::Simple(filename=>"flickrbackup.config");
my $flickr = Net::Flickr::Backup->new($cfg);
my $feedback = Log::Dispatch::Screen->new('name' => 'info',
'min_level' => 'info');
$flickr->log()->add($feedback);
$flickr->backup();
Now run the scripts:
>perl runbackup.pl
Lean back and watch the photos + RDF manifest in your filesystem magically. In this case, RDF as a file format is helpful becaue it allowed Aaron to mix different aspects of the metadata.
You may get an error because some XML library misses, my error message contained
"Can't locate XML/LibXML.pm in @INC"
Luckily, this mailinglist post tells you what to do:
>sudo apt-get install libxml-libxml-perl
This may fail with some weird message, I ignored this and run my backup script again.|
leobard - 31. Jul, 09:29
|
|
poresnomy - 14. Jun, 10:00
Very cool design! I find very interesting information at this article, thanks.
viagra 100 mg
overnight viagra
mail viagra
levitra professional
cheap cialis online
super cialis
professional cialis
cialis soft tabs
clomid 50 mg
clomid 100 mg
clomid 25 mg
viagra 100 mg
overnight viagra
mail viagra
levitra professional
cheap cialis online
super cialis
professional cialis
cialis soft tabs
clomid 50 mg
clomid 100 mg
clomid 25 mg
piwiutr - 25. Jun, 02:57
Perl documentation is excellent. I have seldomly seen such a clean
documentation as Aarons tool and the other tools used. It is minimal, it is simple, it doesn't miss one point.
cialis online |
buy speman online |
buy tramaden online |
canada online |
canadian online |
cialis online |
bull 100 online
documentation as Aarons tool and the other tools used. It is minimal, it is simple, it doesn't miss one point.
cialis online |
buy speman online |
buy tramaden online |
canada online |
canadian online |
cialis online |
bull 100 online
kirelosi - 6. Jul, 12:56
Looking for information and found it at this great site.
Very useful website, thanks for this article and very interesting design, thanks.
buy nexium 40 mg
buy zovirax tablets
buy singulair 10 mg
buy lopressor 50 mg
buy diovan generic
buy zocor generic
buy requip medication
buy aricept medication
buy plavix medication
buy lisinopril drug
Very useful website, thanks for this article and very interesting design, thanks.
buy nexium 40 mg
buy zovirax tablets
buy singulair 10 mg
buy lopressor 50 mg
buy diovan generic
buy zocor generic
buy requip medication
buy aricept medication
buy plavix medication
buy lisinopril drug
- add comment - 0 trackbacks
Trackback URL:
http://leobard.twoday.net/stories/4122767/modTrackback
zerasytto - 12. May, 22:35
Very interesting website. You have an outstanding good and well structured site.
buy sildenafil
cialis jelly
viagra plus
viagra jelly
levitra super active
viagra cialis levitra
order levitra
purchase levitra
cheap levitra
buy sildenafil
cialis jelly
viagra plus
viagra jelly
levitra super active
viagra cialis levitra
order levitra
purchase levitra
cheap levitra
neraskinos - 3. Jun, 22:39
Very cool design! I find very interesting information at this article, thanks.
celebrex 200 mg
generic zyrtec online
generic flonase online
buy crestor generic
prednisone 10 mg
celebrex 200 mg
generic zyrtec online
generic flonase online
buy crestor generic
prednisone 10 mg
poresnomy - 14. Jun, 10:00
Very cool design! I find very interesting information at this article, thanks.
viagra 100 mg
overnight viagra
mail viagra
levitra professional
cheap cialis online
super cialis
professional cialis
cialis soft tabs
clomid 50 mg
clomid 100 mg
clomid 25 mg
viagra 100 mg
overnight viagra
mail viagra
levitra professional
cheap cialis online
super cialis
professional cialis
cialis soft tabs
clomid 50 mg
clomid 100 mg
clomid 25 mg
piwiutr - 25. Jun, 02:57
Perl documentation is excellent. I have seldomly seen such a clean
documentation as Aarons tool and the other tools used. It is minimal, it is simple, it doesn't miss one point.
cialis online |
buy speman online |
buy tramaden online |
canada online |
canadian online |
cialis online |
bull 100 online
documentation as Aarons tool and the other tools used. It is minimal, it is simple, it doesn't miss one point.
cialis online |
buy speman online |
buy tramaden online |
canada online |
canadian online |
cialis online |
bull 100 online
kirelosi - 6. Jul, 12:56
Looking for information and found it at this great site.
Very useful website, thanks for this article and very interesting design, thanks.
buy nexium 40 mg
buy zovirax tablets
buy singulair 10 mg
buy lopressor 50 mg
buy diovan generic
buy zocor generic
buy requip medication
buy aricept medication
buy plavix medication
buy lisinopril drug
Very useful website, thanks for this article and very interesting design, thanks.
buy nexium 40 mg
buy zovirax tablets
buy singulair 10 mg
buy lopressor 50 mg
buy diovan generic
buy zocor generic
buy requip medication
buy aricept medication
buy plavix medication
buy lisinopril drug






buy sildenafil
cialis jelly
viagra plus
viagra jelly
levitra super active
viagra cialis levitra
order levitra
purchase levitra
cheap levitra
celebrex 200 mg
generic zyrtec online
generic flonase online
buy crestor generic
prednisone 10 mg