[python-win32] PAMIE and BeautifulSoup

Williams, Thomas WilliTf at dshs.wa.gov
Sat Feb 18 00:38:03 CET 2006


Greetings,

 

I am using PAMIE to interact with web pages.  Essentially, I am entering
values then submitting the form.  What I have not yet figured out is to read
the source code for the resulting website.   I have used BeautifulSoup to do
this on other websites, but I am unable to incorporate BeautifulSoup with
the resulting website powered by PAMIE.

 

BeautifulSoup Example:

 

>From BeautifulSoup import BeautifulSoup

Import urllib

 

url = 'http://www.cnn.com'

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

soup = BeautifulSoup(s)

soup.done()

 

 

PAMIE Example:

Import cPAMIE

url = 'http://www.cnn.com'

ie = cPAMIE.PAMIE(url)

 

Any guidance or suggestions will be most appreciative.

 

Tom Williams

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20060217/f8db5edd/attachment.htm 


More information about the Python-win32 mailing list