Monday, January 07, 2008

Great Flickr Perl hack from Matt!

I saw this on Matt Mackenzie's blog.  This is great and takes me back to the good ole' perl 4 days.



Today I decided that I would like to backup my flickr account to my Mac. After a few attempts at using a Java based UI tool "FlickrBackup", which had terrible network performance for some reason, I fell back to my trusty old Perl skills. Here is what I did:

1. Install Net::Flickr::Backup

To install this module, open up a terminal and type:
"cpan" (not the quotes)

When CPAN loads up, type:
install Net::Flickr::Backup

Its pretty much that easy.

2. Go to Flickr.com and create an API key. Create one for a web application, and enter pretty much any valid url as your callback. I know, its not a web application...just do it, k?

3. Get an auth_token. This is harder than it needs to be, but here is how I got it done:
- First get a frob. This page shows you how to do it manually. Mac OS X has a terminal command, "md5" that you can run to make your api_sig value. for example:

md5 -s 000005fab4534d05api_key9a0554259914a86fb9e7eb014e4e5d52permsread

Which would yield a MD5 hash of: f2c52fb8fd3124314227bbc0f48003d3

Which it turn would mean the auth url needs to be like:
http://www.flickr.com/services/auth/?api_key=9a0554259914a86fb9e7eb014e4...

Once the URL is constructed, paste it into a browser, and approve access to your account. Once you approve, flickr calls your callback url. I just made my callback a bogus url like http://mattmackenzie.com/authdummy/

1 comment:

  1. Play free game kanser youtube video directory oyun adult porno sex shop image hosting
    japan auto store ara utube ytube video share online games adult

    Kanser -
    Akciğer Kanseri -
    Rahim Kanseri -
    Lenf Kanseri -
    Mide Kanseri -
    Yumurtalık Kanseri -

    Play game -
    Play mario -
    sim taxi -
    Play game -
    Adult games -
    Play game -
    Play game -
    Youtube video

    Play action games -
    Play arcade games -
    Play casino games -
    Play misc games -
    Play puzzle games -
    Play game -
    Play shooting games -
    Play sport games -

    About everything -
    you tube video -
    Hediye -
    Play free game kanser youtube video directory oyun adult porno sex shop image hosting
    japan auto store ara mario games erotik fantazi fantezi iç giyim utube ytube tube
    video share online games adult
    Porn tube

    Japan autos -
    Alışveriş -
    Sex shop -
    Image hosting -
    Image hosting -
    Porn Video -
    Porn Video -
    Porno Video -
    Play free game kanser youtube video directory oyun adult porno sex shop image hosting
    japan auto store ara mario games erotik fantazi fantezi iç giyim utube ytube
    video share online games adult tube
    Porn tube
    Porn Video -
    Youtube Video -
    Sex Shop -
    Sex Shop, Kozmetik -
    erotik iç giyim -
    Sex Shop -
    Video Hosting -
    Porn Video -
    Hediye -
    porno -
    Directory -
    Directory

    Play free game kanser youtube video directory oyun adult porno sex shop image hosting
    japan auto store ara mario games erotik fantazi fantezi iç giyim utube ytube
    video share online games adult tube

    ReplyDelete

Do not spam this blog! Google and Yahoo DO NOT follow comment links for SEO. If you post an unrelated link advertising a company or service, you will be reported immediately for spam and your link deleted within 30 minutes. If you want to sponsor a post, please let us know by reaching out to duane dot nickull at gmail dot com.