Can webbrowser module get source code?

Muddy Coder cosmo_general at
Sun Jan 25 00:14:49 CET 2009

Hi All,

I played the demo of webbrowser module, with the code below:

import webbrowser
url = ''

when I ran the code, it popped out a webpage nicely. I want to go
further: to get the source code of the webpage being displayed. Is it
possible to do it? I tried webbrow.get() but didn't work. Somebody can
help? Thanks!

Muddy Coder

More information about the Python-list mailing list