some site login problem help plz..

james27 southpolepen at hotmail.com
Mon Oct 5 08:49:40 EDT 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("http://www.naver.com");
>> </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
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 
> 

-- 
View this message in context: http://www.nabble.com/some-site-login-problem-help-plz..-tp25746497p25750229.html
Sent from the Python - python-list mailing list archive at Nabble.com.




More information about the Python-list mailing list