in reply to Re^3: Download FIle with WWW::Mechanize::PhantomJS
in thread Download FIle with WWW::Mechanize::PhantomJS
Found something here http://stackoverflow.com/questions/31564215/how-to-download-a-csv-file-using-phantomjs.var fs = require('fs'); var page=this; var result = page.evaluate(function() { var out; $.ajax({ 'async' : false, 'url' : 'fullurltodownload.csv', 'success' : function(data, status, xhr) { out = data; } }); return out; }); fs.write('mydownloadedfile.csv', result);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Download FIle with WWW::Mechanize::PhantomJS
by Anonymous Monk on Dec 26, 2015 at 09:59 UTC | |
by NeerajPandey (Novice) on Dec 26, 2015 at 13:12 UTC |