[python-win32] How to get the dynamic parts of the url, with python ?

Michael Foord fuzzyman at voidspace.org.uk
Thu Jan 31 13:06:08 CET 2008


Tova Sirkis wrote:
> urllib2.urlopen(url)   only returns the static part of the url.
> Is it possible, with python, to get the dynamic parts of the url, too? 
> (for example ads)
> If yes, how?

It is possible - although can be difficult as ads are usually fetched 
with Javascript. You can certainly get the javascript though.

I'll give you a clue - how do you think the browser does it when you 
only type the main URL into the address bar...

Michael Foord
http://www.manning.com/foord

> Thanks
> Tova Sirkis 
> ------------------------------------------------------------------------
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>   



More information about the python-win32 mailing list