View Single Post
Old 01-21-2015, 10:06 PM   #5
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,215
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Since I was somewhat curious about this, I looked into it some more and it looks like the salon.com servers are returning gzip encoded data even if the client does not ask for it. You can workaround that by adding the following to the recipe

Code:
    def get_browser(self, *args, **kwargs):
        br = BasicNewsRecipe.get_browser(self, *args, **kwargs)
        br.set_handle_gzip(True)
        return br
https://github.com/kovidgoyal/calibr...7df635ab421dff

Last edited by kovidgoyal; 01-21-2015 at 10:09 PM.
kovidgoyal is offline   Reply With Quote