download data from a web page

1 Ansicht (letzte 30 Tage)
Farhadtah
Farhadtah am 3 Sep. 2016
Bearbeitet: Cedric am 14 Okt. 2017
Hello,
I want to write a code downloading an Excel file from a web page automatically or by my command. I have two different ideas.
1. Download an excel file and replace it with new file
2. Just download new data within an excel file and add it to yesterday's data set(preferable)
Either ways I could not download the file itself. Would you please help me to solve this case?
Thanks,

Akzeptierte Antwort

George
George am 3 Sep. 2016

Weitere Antworten (1)

KidJolly
KidJolly am 14 Okt. 2017
I need a matlab code to download data from the website. The code should have the option to select the releases, all countries, Gross Domestic product, all the date range and save the excel files
If you select manually the options for the website --- http://www.imf.org/external/ns/cs.aspx?id=28 At the end you will see a table and at the bottom of that you will find an excel file. I need to download that file. These are the steps that the matlab code should execute
  1 Kommentar
Cedric
Cedric am 14 Okt. 2017
Bearbeitet: Cedric am 14 Okt. 2017
You should open a new thread for this if you really want to do it this way.
Yet, if you look at these pages, you well see some regularity but that Excel files are not stored in a regular fashion, sometimes a data set released in April is stored under month 01, sometimes under month 02. So there may be some HTML parsing to accomplish (or just brute force try/catch 12 months per year).
If all you need is 36 Excel files, just do it by hand, it will take 5-10 minutes and you'll be done.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Downloads finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by