a question about websave
1 次查看(过去 30 天)
显示 更早的评论
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
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"))
websave("PathToFile",url)
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!