Use mechanize to log into megaupload

后端 未结 1 1869
青春惊慌失措
青春惊慌失措 2021-01-15 05:46

I am attempting to use the following code to log into megaupload. My question is, how do i that it successfully logged in? I print out the current URL at the end of the code

1条回答
  •  野的像风
    2021-01-15 06:09

    Search the error message in the response body:

    "Username and password do not match" in br.response().read()
    

    Or check if you got the expected cookie (simple example, tweak as needed):

    any(c.domain == ".megaupload.com" and c.name == "user" for c in cj)
    

    0 讨论(0)
提交回复
热议问题