How would I do this in Python 1 1
Charles Steinkuehler
charles at steinkuehler.net
Mon Feb 25 14:42:00 CST 2002
> Ok, I decided to follow the yellow brick road and now have a copy of
Python
> 2.?? (something) on my NT box. I was trying a little example that
> requested a web page. That worked great. Now I have a little "hmm how
> would that work" project in mind . . . how would I get the last updated
> date/time from a web page? I know it's gotta be there somewhere, because
> Netscape will show it most of the time. I realize it's not going to be
> valid on dynamic pages, but that's not the purpose for my little
experiment.
>
> If anyone has suggestions/ideas please let me know. Thanks!
Last-modified date/time is typically returned as a header (Last-modified:
...) by the web server. You can even get this information (if available)
w/o downloading the whole web page using the "HEAD" rather than "GET"
command.
Charles Steinkuehler
charles at steinkuehler.net
More information about the Kclug
mailing list