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
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.
|