migrated fetch routine from curb to nokogiri.