flickrfs
I visited Flickr rather often the last weeks. I am always amazed by
the beautiful photos one can find there. It really makes me crave for
a good digital camera.
Recently a new tool to access the image database has been released. It
is called filckrfs and maps the images onto your local hard drive.
A simple session looks somewhat like this:
mkdir /mnt/flickr
flickrfs /mnt/flickr &
cd /mnt/flickr/tags/public
mkdir lazy:coffee
ls lazy\:coffee/
At this point you get a listing of all images that match the tags
"lazy" and "coffee". Nothing will be downloaded at this point, so it
is pretty lightweight.
Only if you actually look at the image, it will be transferred from
flickr.com:
xview lazy\:coffee/lazy\ latte
The whole thing is implemented in python and uses the python-fuse
library for which I did write an ebuild a while ago. So I just had to
create an ebuild for flickrfs. The application is still slightly rough
around the edges but after some trial and error it works for me.
Actually the only thing you will have to do initially is to start the
application once without running it in the background (as the root
user since you can only run flickrfs as the admin of your system):
flickrfs /mnt/flickr
This will open the firefox browser and you are required to log in into
your flickr account. This should then return an authentication token
that will be saved for further access to flickr.
If this step does not succeed you will receive a message about an
"invalid frob".
For me the procedure failed with the firefox browser. But it was no
problem to set flickrfs to use "elinks" as a text based browser. I was
able to log in this way and got my authentication token.
And now I'm having fun...
UPDATE:
Actually I think the problem with firefox was just that I already had
it open as the non-root user. This prevented flickrfs from getting the
token. If you ensure that your browser is closed when you run
flickrfs the authentication should work just fine.
Posted at: 22:54 |
Permalink |
category: /english/technical/gentoo