 
 get_dellbrueck_tier = (url)->
     new Promise (f, r) ->
-        #console.log('\n' + url + '\n')
         request (uri: url, encoding: "ISO-8859-1"), (err, response, body) ->
             if err
                 r err
-          #  body = iconvlite.decode(body, "ISO-8859-1")
             $ = cheerio.load body
             content = $('p[style="font-family:Verdana;font-size:13px;font-style:normal;font-weight:normal;color:#756d58;vertical-align:top"]').first()
             name = content.find('b').first().text()

    new Promise (f, r) ->
          get_dellbrueck_urls tier_url
              .then (urls) ->
                  console.log(urls.length)
                  p = []
                  for url in urls
                      p.push get_dellbrueck_tier url
                  Promise.all p
                    .then (values) ->

    request sub_url, (err, response, body) ->
        if err
            r err
        urls = []
        $ = cheerio.load body
        $('a[style="border-style:none;background-color:#ece9e2;vertical-align:top;font:normal 13px Verdana; color:#756d58"]').each ->
            elem = $(this)
            detail_url = dellbrueck_base_url + elem.attr('href')
            urls.push detail_url
        f urls


