Reading XLSX From the Web
Posted: Wed Oct 21, 2015 2:27 pm
Hello,
I'm struggling to read data in .xlsx form from the web. I followed the Stock & Watson example for XLS on pg. 519 of the EV9 command ref, but no luck.
Here are a few variations I've tried, all with errors (including one message that read "mystery error"):
The file is standard in that it has numerical data in columns (starting in cell A1 of the workbook's only sheet) with one header row. Downloading does not require authentication and the file is not protected/locked.
I would even be happy if I could just programmatically do a two-step process where I 1) download to the ev_temp folder and 2) read in from that location on disk. I know that this could be done with other software, but I'm trying to keep this particular project all-EViews.
Any ideas?
Running EV9 Enterprise on Windows 7.
Thanks,
-James
I'm struggling to read data in .xlsx form from the web. I followed the Stock & Watson example for XLS on pg. 519 of the EV9 command ref, but no luck.
Here are a few variations I've tried, all with errors (including one message that read "mystery error"):
Code: Select all
%url = "http://www.policyuncertainty.com/media/Russia_Policy_Uncertainty_Data.xlsx"
wfopen %url
wfopen {%url}
wfopen(type=excelxml) %url
wfopen(type=excelxml) {%url}
wfopen(type=excel) %url
wfopen(type=excel) {%url}
I would even be happy if I could just programmatically do a two-step process where I 1) download to the ev_temp folder and 2) read in from that location on disk. I know that this could be done with other software, but I'm trying to keep this particular project all-EViews.
Any ideas?
Running EV9 Enterprise on Windows 7.
Thanks,
-James