View Single Post
Old 06-29-2017, 11:31 AM   #7
simplisity
Junior Member
simplisity began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2017
Device: Kindle
For many services on NYT, Calibre probably does not need to authenticate. But, If for some reason, you want to authenticate with NYT, here is another workaround:

1. In the recipe, modify get_browser so that it sends a session cookie instead of submitting the form:

Code:
    def get_browser(self):
        br = super(NYTimesRecipe, self).get_browser()
        if self.username is not None:
            br.addheaders = [("Cookie", self.username)]
        return br
2. In your web browser, go login at the NYTimes website.

3. Copy your cookie for NYT website and paste it into the Username field in the Calibre UI download screen.


You might need to grab a new cookie very few days or weeks. Use at your own risk.
simplisity is offline   Reply With Quote