You are not logged in.
#!/usr/bin/env python
import urllib2
def getLastModified(url):
sock = urllib2.urlopen(url)
return sock.info().get("Last-Modified")
print "TV-NET: ", getLastModified("http://www.tvnet.lv")
As you see in the screenshot, the page was last modified @ 20:04:21 - urllib2 request randomly returns the right and the wrong answers .. 20:04:21 ( corrent ) and 20:04:49 ( wrong ).
Am I missing something here ?
Offline