Skip to content

Instantly share code, notes, and snippets.

@MeoBeoI
Last active February 2, 2016 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MeoBeoI/388d003ccd161459f6f7 to your computer and use it in GitHub Desktop.
Save MeoBeoI/388d003ccd161459f6f7 to your computer and use it in GitHub Desktop.
request('http://getListFilms.com', function(err, listFilms) {
if (err) console.log('xu li loi di ne pa');
request('http://getListGai.net', function(err, listGais) {
if (err) console.log('xu li loi nua di ne pa');
request('http://guiListFilmChoListGai', function(err, listGaiOkDiXemFilmDeBanLuaChon){
if (err) console.log('xu li cai nay nua la xong');
if (listGaiOkDiXemFilmDeBanLuaChon.length == 0) {
// Nhu cai bui trau
} else {
return listGaiOkDiXemFilmDeBanLuaChon;
}
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment