Download File Which has the latest Time Stamp From Website
-3
votes
1
answer
181
views
### Website is like this
Can't add the actual site as it's from work.
These files don't have version numbers,
but have different names. No latest file link either, it's a very minimal website.
You can only tell which is the latest by its timestamp.
#### Ideas
-

curl
the webpage, add the files to array, then download the last one in the index with curl
- curl
the webpage, sort each file by its upload date then subtract the upload date from the current date then have curl
download the file which has the smallest time difference? I'd use date
to convert to seconds.
Open to a bash solution.
**any better ideas?**
Asked by Nickotine
(554 rep)
Feb 22, 2024, 11:44 PM
Last activity: Feb 26, 2024, 12:44 PM
Last activity: Feb 26, 2024, 12:44 PM