Getting the source of a remote webpage

Nugget 1048094008 at
Thu Jun 24 05:16:49 CEST 2004

On Wed, 23 Jun 2004 19:47:02 -0700, Ryan Kaskel wrote:

> Is it possible to get the source of a remote webpage (just the
> straight HTML) without anything too complicated (like COM, I just want
> to write a simple script if possible) and write it to a file? For
> example, is it possible to do something like os.system(
> iexplorer.exe command....) with another command that automatically
> opens the page? Thanks.

import urllib

f = urllib.urlopen(url)
s =

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---

More information about the Python-list mailing list