javascript - How to download a file to memory casperjs -
i'm beginner programmer in casperjs , i'm trying download files webpage , save on memory. i'm able save temp folder, wondering if theres better way.
function downloadfile(newurl){ var fileext = newurl.replace(/^.*[\\\/]/, ''); var path = 'c:/windows/temp/' + fileext; casper.download(newurl, path); }
Comments
Post a Comment