Re: [perl-python] get web page programatically

2005-02-04 Thread Chris Mattern
Xah Lee wrote: Just the standard warnings for any novices unfamiliar with Mr. Lee. Mr. Lee's posts are regularly riddled with severe errors (I found the assertion that LWP::Simple and LWP::UserAgent aren't part of the standard base perl install a particularly amusing one in this particular post

Re: [perl-python] get web page programatically

2005-02-04 Thread Dan Perl
"Xah Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] # note the line # from import # it reads the library and import the function name # to see available functions in a module one can use "dir" # import urllib; print dir(urllib) After about a month, this tutorial has finally r

[perl-python] get web page programatically

2005-02-04 Thread Xah Lee
# -*- coding: utf-8 -*- # Python # suppose you want to fetch a webpage. from urllib import urlopen print urlopen('http://xahlee.org/Periodic_dosage_dir/_p2/russell-lecture.html').read() # note the line # from import # it reads the library and import the function name # to see available function