title: Error: { [Error: getaddrinfo ENOTFOUND] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }
body: <p>Fotolog is closing recently and I wanted to backup all of mine photos on there. Looking for something useful, I found this project: <a href="https://github.com/firstdoit/fotolog-backup" rel="nofollow">https://github.com/firstdoit/fotolog-backup</a></p>
  
  <p>I installed npm and coffee with the instructions on the readme</p>
  
  <p>but when I try to run: </p>
  
  <pre><code> coffee fotolog-build-index.coffee ticinowriting2
  </code></pre>
  
  <p>I receive this error: </p>
  
  <pre><code>doc@doc-mtn:~/fotolog-backup$ coffee fotolog-build-index.coffee ticinowriting2
  { [Error: getaddrinfo ENOTFOUND] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }
  </code></pre>
  
  <p>The code in "fotolog-build-index" is:</p>
  
  <pre><code> request = require 'request'
  $ = require 'cheerio'
  fs = require 'fs'
  
  imageURLs = []
  user = process.argv[2]
  throw new Error("Usage: coffee fotolog-build-index.coffee &lt;username&gt;") unless user
  
  buildIndexFromPage = (page) -&gt;
  request "http://www.fotolog.com.br/#{user}/mosaic/#{page}", (err, resp, html) -&gt;
      return console.error(err)  if err
      console.log "finished page #{page}... adding images"
  
      images = $.load(html)("a.wall_img_container img")
      images.map (i,img) -&gt;
          imageURLs.push $(img).attr("src").replace('_t','_f')
  
      if images.length &lt; 30
          console.log imageURLs
          console.log "got #{imageURLs.length} images"
          fs.writeFileSync('index.json', JSON.stringify(imageURLs))
      else
          buildIndexFromPage(page + 30)
  
  buildIndexFromPage(0)
  </code></pre>
  
  <p>Sorry for my bad english, im from switzerland and i know quite nothing about this kind of code</p>