html navigation and getting file from website.

10 Ansichten (letzte 30 Tage)
Ryan
Ryan am 6 Apr. 2011
2 related questions:
1. Is there a way/process to write code to navigate through html. I am wanting to go to a specific website, enter information into specific fields, click the search button, which will pull up a results query.
2. Is it possible to grab a specific file (e.g. excel file) from a non-ftp url? I couldn't find that it was possible using the urlwrite function.

Antworten (1)

Walter Roberson
Walter Roberson am 6 Apr. 2011
If urlwrite() is not sufficient for your navigation, then you may wish to use the Java Robot class.
  4 Kommentare
Ryan
Ryan am 6 Apr. 2011
I'd like to be able to do something similar to the mget function...
mw = ftp('ftp.mathworks.com');
mget(mw, 'README');
close(mw);
This only works for FTP servers I believe though. Is there anyway to accomplish the same thing on an http: url?
Walter Roberson
Walter Roberson am 6 Apr. 2011
No, http is defined to work with one URL at a time.
If you were to use a package such as cURL to fetch the pages of interest then you might be able to program multiple URLs in to one call to cURL (which would still have to fetch the files one at a time.)

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Desktop 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