Thread: debug mechanize
View Single Post
Old 05-12-2020, 12:25 PM   #4
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,431
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to override get_browser() in the recipe, like this:

Code:
    def get_browser(self, *args, **kwargs):
        browser = BasicNewsrecipe.get_browser(self, *args, **kwargs)
        browser.set_debug_http(True)
        browser.set_debug_responses(True)
        browser.set_debug_redirects(True)
        return browser
kovidgoyal is online now   Reply With Quote