Python for website size

Tim Roberts timr at probo.com
Tue Nov 26 02:04:26 EST 2002


"Shawn Zeng" <xizst9 at pitt.edu> wrote:
>
>Is there any python program or libray can be used to obtain the total size
>of a website and its individual pages as well?

Do you mean remotely?  As in, a web site on another computer?  If so, then
the answer is no, this information is not learnable without fetching each
and every link and image on every page and adding up the sizes yourself.

On your own web site, you can use the 'du' command as suggested by another
poster, but many sites put icons and images in separate directory trees, so
even that is not entirely reliable.
--
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list