01-08-2024, 01:35 PM | #1 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Sep 2020
Device: Kindle Oasis 3
|
Help with Standard Ebooks feed
Hi!
I'm pretty unskilled when it comes to coding, so I'd like to ask for some help. To access the Atom feed for Standard Ebooks, I have to authenticate with my email address. The format it uses is "email@domain@http://standardebooks.org/feeds/atom/all", which works fine in a browser but, when I use it in a recipe, the resulting download only contains: Failed feed: Standard Ebooks Atom Feed HTTP Error 401: Unauthorized Is there a way to enable simple authentication like this in a recipe? I've looked through the User Guide, and it's Greek to me! * If anyone can help, I'd REALLY appreciate it! Cheers, Kevin |
01-09-2024, 02:37 AM | #2 |
Evangelist
Posts: 462
Karma: 82692
Join Date: May 2021
Device: kindle
|
Code:
def get_browser(self): return BasicNewsRecipe.get_browser(self, user_agent='common_words/based') |
01-09-2024, 09:24 AM | #3 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Sep 2020
Device: Kindle Oasis 3
|
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'), ] |
01-09-2024, 12:08 PM | #4 |
Evangelist
Posts: 462
Karma: 82692
Join Date: May 2021
Device: kindle
|
I wont know what the problem is unless i try it myself.
this is an ebooks website.. i dont know what this feed will get you but if you want public ebooks, try using the "Get books" function in calibre toolbar menu or many other websites that provide them. |
Tags |
calibre, receipe, standard ebooks |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Standard eBooks is looking for supporters | ZodWallop | General Discussions | 67 | 04-15-2023 01:09 PM |
Standard eBooks Is a Gutenberg Project You’ll Actually Use | ZodWallop | News | 104 | 02-04-2023 03:31 PM |
[Store Plugin] Standard Ebooks | bs2k | Plugins | 1 | 08-19-2020 12:30 AM |
Standard eBooks: Classic eBooks Remasters | Tomifonication | Deals and Resources (No Self-Promotion or Affiliate Links) | 21 | 04-28-2019 11:58 PM |
Is there a standard format for library eBooks? | RonaldJJames | General Discussions | 16 | 03-15-2010 01:59 PM |