node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



This module grabs links to images from a specified Flickr set, generates a html that links to those images, and writes that html to stdout.


npm install flickrset-to-html


First, create an apikey.js and put it in the root directory of this module. It should contain the your Flickr API credentials. If you don't have them, you can get them here.

module.exports = {
  api_key: 'Your Flickr API key',
  secret: 'Your Flickr API secret'

Then, run this command:

node flickrset-to-html <set id> <size>

The size corresponds to the various Flickr sizes and can be one of the following strings:

s small square 75x75 q large square 150x150 t thumbnail, 100 on longest side m small, 240 on longest side n small, 320 on longest side

  • medium, 500 on longest side z medium 640, 640 on longest side c medium 800, 800 on longest side† b large, 1024 on longest side* o original image, either a jpg, gif or png, depending on source format

For example, running

node flickrset-to-html.js 72157635574850276 z

Puts the following output on the console:

fetching method signatures [=============================================================================================================================================================================================================] 100%
<a href=""><img src="" alt=""></a>

<a href=""><img src="" alt="The Oxford Rat! He had a crowd going. Was probably a very erudite talk."></a>

<a href=""><img src="" alt="The Oxford Death Star, keeping the peace."></a>

<a href=""><img src="" alt=""></a>

<a href=""><img src="" alt="Serious messages about tragedies require serious fonts!"></a>

<a href=""><img src="" alt=""></a>

<a href=""><img src="" alt="The candle collection at the University Church of St. Mary the Virgin"></a>

<a href=""><img src="" alt="One of the views from the top of the rooftop hangout at Corpus Christi College."></a>

<a href=""><img src="" alt="I think they were keeping bees on the roof at Corpus Christi."></a>

<a href=""><img src="" alt="Stained Glass Blast go! (At the Christ Church Cathedral.)"></a>

<a href=""><img src="" alt="The Bodlean Library, from the inner courtyard."></a>

<a href=""><img src="" alt="People were pretty excited to see the Hogwarts dining hall."></a>

<a href=""><img src="" alt="Even the plates were fascinating."></a>

<a href=""><img src="" alt="Some former headmasters of Hogwarts watching over the sparkling water."></a>

<a href=""><img src="" alt="PUDDINGs"></a>

<a href=""><img src="" alt="This Christ Church staircase was Abbey Roaded by Harry Potter."></a>

<a href=""><img src="" alt="Christ Church courtyard. Or quadrangle?"></a>

<a href=""><img src="" alt="Skull ivy"></a>

<a href=""><img src="" alt="Osiris retains his hat even in bird form."></a>

<a href=""><img src="" alt="Some donko"></a>

<a href=""><img src="" alt="Wrestlers, from India AD 650-750."></a>

<a href=""><img src="" alt="Bass viol. Six strings, frets, f-holes, contoured bridge!"></a>

<a href=""><img src="" alt=""></a>

<a href=""><img src="" alt="Each side of this tower in Oxford paid tribute to a guy in Zeppelin. Zoso, the feather, you name it—all the guys!"></a>