View Single Post
Old 03-04-2022, 02:10 PM   #118
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,013
Karma: 147977995
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by 13xforever View Post
interestingly, my proposed changes still work fine (I had to remove your user agent override from 1.8.3 though)

in __init__.py:
Code:
    def set_extra_headers(self, br):
        br.set_current_header('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,image/*,*/*;q=0.8')
        br.set_current_header('Accept-Language', 'en-US,en-UK,en;q=0.9,ja;q=0.8')
        br.set_current_header('Accept-Encoding', 'gzip')
and then later in identity: and download_cover: functions change
br = self.browser to br = self.set_extra_headers(self.browser)

also from testing, `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15` user agent seems to be the most reliable at the moment, but yes, it's a game of cat and mouse when there's no documentation and protection can change any moment
Where does the code in the code block go?
JSWolf is offline   Reply With Quote