View Single Post
Old 02-19-2017, 09:05 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,397
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
general login debuggin tips:

inspect the html your get back from br.submit() like this
html = br.submit().read()

see if it contains anything indicating the login failed or succeeded.

Do the login in chrome with the developer tools enabled to see the exact request chain that is sent to the server. You can then duplicate that in the recipe using mechanize.Request, see for example the builtin wsj recipe
kovidgoyal is offline   Reply With Quote