Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 01-08-2024, 01:35 PM   #1
PiperKev
Enthusiast
PiperKev began at the beginning.
 
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
PiperKev is offline   Reply With Quote
Old 01-09-2024, 02:37 AM   #2
unkn0wn
Evangelist
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 452
Karma: 82686
Join Date: May 2021
Device: kindle
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.
unkn0wn is offline   Reply With Quote
Old 01-09-2024, 09:24 AM   #3
PiperKev
Enthusiast
PiperKev began at the beginning.
 
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'),
]




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
Old 01-09-2024, 12:08 PM   #4
unkn0wn
Evangelist
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 452
Karma: 82686
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.
unkn0wn is offline   Reply With Quote
Reply

Tags
calibre, receipe, standard ebooks


Forum Jump

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


All times are GMT -4. The time now is 09:50 AM.


MobileRead.com is a privately owned, operated and funded community.