Flickr2wiki

From Hackerspace Brussels
Jump to: navigation, search

Made a small script: http://fanatic.be/flickr/

Takes as input a url of a flickr-set or basically anything containging 17 numeric characters, for instance:

http://www.flickr.com/photos/zoobab/sets/72157622918012427/

And ouputs:

 {|
 |-<flickr>4202521089|thumb|left|m|JTAG Night at HSB</flickr>
 | <flickr>4203277760|thumb|left|m|JTAG Night at HSB</flickr>
 | <flickr>4203276846|thumb|left|m|JTAG Night at HSB</flickr>
 | <flickr>4202517217|thumb|left|m|JTAG Night at HSB</flickr>
 | <flickr>4202517633|thumb|left|m|19122009778</flickr>
 | <flickr>4203277200|thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr>
 |-<flickr>4203277062|thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr>
 | <flickr>4202520735|thumb|left|m|JTAG Night at HSB: Olimex ARM-USB-OCD</flickr>
 | <flickr>4203276022|thumb|left|m|JTAG Night at HSB: Olimex ARM-USB-OCD</flickr>
 | <flickr>4203278010|thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr>
 | <flickr>4203278184|thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr>
 | <flickr>4203278370|thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr>
 |-<flickr>4203276652|thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr>
 | <flickr>4202518171|thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr>
 | <flickr>4203278978|thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr>
 | <flickr>4202517391|thumb|left|m|19122009767</flickr>
 | <flickr>4202519361|thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr>
 | <flickr>4203279434|thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr>
 |-<flickr>4202520565|thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr>
 | <flickr>4202517761|thumb|left|m|JTAG Night at HSB: Olimex ARM-USB-OCD</flickr>
 | <flickr>4202517033|thumb|left|m|JTAG Night at HSB: Olimex ARM-USB-OCD</flickr>
 | <flickr>4202518371|thumb|left|m|JTAG Night at HSB: Olimex ARM-USB-OCD</flickr>
 | <flickr>4203274920|thumb|left|m|JTAG Night at HSB: Olimex ARM-USB-OCD</flickr>
 | <flickr>4203273992|thumb|left|m|JTAG Night at HSB: Olimex ARM-USB-OCD</flickr>
 |-<flickr>4202516159|thumb|left|m|JTAG Night at HSB: Olimex ARM-USB-OCD</flickr>
 | <flickr>4203274710|thumb|left|m|JTAG Night at HSB</flickr>
 | <flickr>4203273476|thumb|left|m|JTAG Night at HSB</flickr>
 | <flickr>4202515277|thumb|left|m|JTAG Night at HSB: Belgacom Box 1 (BBOX1)</flickr>
 | <flickr>4203273754|thumb|left|m|JTAG Night at HSB: Belgacom Box 2 (BBOX2)</flickr>
 | <flickr>4203274422|thumb|left|m|JTAG Night at HSB</flickr>
 |}

OR:

thumb|left|m|JTAG Night at HSB</flickr> thumb|left|m|JTAG Night at HSB</flickr> thumb|left|m|JTAG Night at HSB</flickr> thumb|left|m|19122009778</flickr> thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr>
thumb|left|m|JTAG Night at HSB: Olimex ARM-USB-OCD</flickr> thumb|left|m|JTAG Night at HSB: Olimex ARM-USB-OCD</flickr> thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr> thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr> thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr>
thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr> thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr> thumb|left|m|19122009767</flickr> thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr> thumb|left|m|JTAG Night at HSB: Amontec JTAG key tiny</flickr>
thumb|left|m|JTAG Night at HSB: Olimex ARM-USB-OCD</flickr> thumb|left|m|JTAG Night at HSB: Olimex ARM-USB-OCD</flickr> thumb|left|m|JTAG Night at HSB: Olimex ARM-USB-OCD</flickr> thumb|left|m|JTAG Night at HSB: Olimex ARM-USB-OCD</flickr> thumb|left|m|JTAG Night at HSB: Olimex ARM-USB-OCD</flickr>
thumb|left|m|JTAG Night at HSB</flickr> thumb|left|m|JTAG Night at HSB</flickr> thumb|left|m|JTAG Night at HSB: Belgacom Box 1 (BBOX1)</flickr> thumb|left|m|JTAG Night at HSB: Belgacom Box 2 (BBOX2)</flickr> thumb|left|m|JTAG Night at HSB</flickr>

We accept patches

Feel free to edit and host the script: http://fanatic.be/flickr/Flickr2wiki.zip (gpl: feel free to drop in a git)

You'll need an api key, get it here : http://www.flickr.com/services/api/misc.api_keys.html

After you've edited, add the location of your script to the top of this page.