[Tutor] webbrowser module, weird weird behaviour

Sam Corder samus@feudalkingdoms.tzo.org
Fri, 06 Apr 2001 16:59:11 +0000


If all you want to do is control a web browser and you don't care about being cross 
platform ie is pretty easy to control using com.  The nice thing about this 
approach is that ie lets you at the dom objects.  You can do strange stuff from 
reparenting table rows to filling out forms and pressing buttons.  Its not cross 
platform by any stretch but its pretty easy.  I would also suggest getting the web 
developer accessories from MS.  It lets you right click on a page and either view 
partial source (selected text) or view the document tree.  Anyway just a suggestion 
on the easy way out for windows.  The harder more cross platform way would be to 
dump the page into a dom parser keeping track of cookies and sending post data etc 
but that leaves you simulating a lot of a web browser just not the rendering 
engine.  Anyway good luck.

-Sam

wheelege@tsn.cc, tutor@python.org wrote:
>
>It is a little strange isn't it...thanks for the incoming reply :)
>  I'm running win98 here.