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
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)