I have a website from which i want to download files. A new file is uploaded about every other day. How can i check if a new file is up or not?
Ex: url1 = website.com/file_2013-06-27.zip <-- uploaded
url2 = website.com/file_2013-06-29.zip <-- not uploaded
if i go to url 2, in 5 seconds it redirects back to website.com
the source code of it is: <meta http-equiv="refresh" content="5;url=http://website.com" /> Error: 2 [ Not Allowed ]
The size of the files are 100mb+ and if i try to look at the source by doing urllib.urlopen("website.com/file_2013-06-27.zip").read()
, it takes a while if the file exists.
Whats a quick way to check if a new file was uploaded?
Thanks