some site login problem help plz..

james27 southpolepen at
Mon Oct 5 14:49:40 CEST 2009

still looking for good solution.
anyway..thanks Diez :)

Diez B. Roggisch-2 wrote:
> james27 wrote:
>> hello..
>> im new to python.
>> i have some problem with mechanize.
>> before i was used mechanize with no problem.
>> but i couldn't success login with some site.
>> for several days i was looked for solution but failed.
>> my problem is , login is no probelm but can't retrieve html source code
>> from opened site.
>> actually only can read some small html code, such like below.
>> <html>
>> <script language=javascript>
>> location.replace("");
>> </script>
>> </html>
>> i want to retrive full html source code..but i can't . i was try with
>> twill and mechanize and urllib and so on.
>> i have no idea.. anyone can help me?
> Your problem is that the site uses JavaScript to replace itself. Mechanize
> can't do anything about that. You might have more luck with scripting a
> browser. No idea if there are any special packages available for that
> though.
> Diez
> -- 

View this message in context:
Sent from the Python - python-list mailing list archive at

More information about the Python-list mailing list