View Single Post
Old 01-09-2024, 09:24 AM   #3
PiperKev
Connoisseur
PiperKev began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Sep 2020
Device: KOA3 JB
I have no idea what that means, but I added it to the recipe and it didn't work. I still get "HTTP Error 401: Unauthorized" in the body of the epub.

This is the recipe so far (email redacted):

#!/usr/bin/env python
# vim:fileencoding=utf-8
from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1704803983(BasicNewsRecipe):
title = 'Standard Ebooks Atom Feed'
oldest_article = 7
max_articles_per_feed = 100
auto_cleanup = True
def get_browser(self):
return BasicNewsRecipe.get_browser(self, user_agent='common_words/based')
feeds = [
('Standard Ebooks Atom Feed', 'https://********@*****.***@standardebooks.org/feeds/atom/all'),
]




Quote:
Originally Posted by unkn0wn View Post
Code:
    def get_browser(self):
        return BasicNewsRecipe.get_browser(self, user_agent='common_words/based')
try adding this or else use user_agent of your browser and its request headers if any.
PiperKev is offline   Reply With Quote