a question about websave

1 回表示 (過去 30 日間)
alpedhuez
alpedhuez 2022 年 6 月 18 日
コメント済み: alpedhuez 2022 年 6 月 18 日
There is a webpage "test.com/data" and a file "2022_06_18_abdacadabra.xlsx" is posted on that webpage. There doeThe file name changes each day, like it was "2022_06_17_abdacadabra.xlsx." I want to be able to download this file using websave using the wildcard for the date part of the file name. How will it work?
  2 件のコメント
Chris Burschyk
Chris Burschyk 2022 年 6 月 18 日
Maybe something like this. Only works if the file is downloadable via that url. Instead of 'today' you can use any other date.
url = sprintf("https://www.test.com/data/%s_abdacadabra.xlsx",datetime('today',"Format","yyyy_MM_dd"))
url = "https://www.test.com/data/2022_06_18_abdacadabra.xlsx"
websave("PathToFile",url)
Error using websave
The connection to URL 'https://www.test.com/data/2022_06_18_abdacadabra.xlsx' timed out after 5.000 seconds. The reason is "Connection timeout after 5100 ms". Perhaps the server is not responding or
weboptions.Timeout needs to be set to a higher value.
alpedhuez
alpedhuez 2022 年 6 月 18 日
Let me work on it.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by