Getting the source of a remote webpage

Nugget 1048094008 at newsfeeds.com
Wed Jun 23 23:16:49 EDT 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(....run
> iexplorer.exe command....) with another command that automatically
> opens the page? Thanks.

import urllib

f = urllib.urlopen(url)
s = site.read()






----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com 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