View Single Post
Old 02-19-2017, 10: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,710
Karma: 28549304
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 online now   Reply With Quote