     new Promise (f, r) ->
         request url, (err, response, body) ->
             if err
-                console.error err
                 r err
-                return
             $ = cheerio.load body
             content = $('#content')
             name = content.find('h1').text()

    new Promise (f, r) ->
        values = cache.get('tiere')
        if not values
            #console.log "no cache"
            get_detailUrls tierheim_url
                .then (urls) ->
                    p = []
                    for url in urls
                        p.push get_details url
                    Promise.all p
                .then (values) ->
                    cache.set('tiere', values, 60*60*24)
                    f values
        else
            #console.log "cache"
            f values

# get a pet that was not posted yet

                fs.writeFileSync filename, JSON.stringify []
                postedPets = []
        catch err
            r err
        get_data().then (pets) ->
            notPostedPets = []
