View Single Post
Old 02-28-2019, 05:16 PM   #2
lui1
Enthusiast
lui1 began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Dec 2017
Location: Los Angeles, CA
Device: Smart Phone
Adding news sources is explained in the User's Manual here https://manual.calibre-ebook.com/news.html. Since this site provides a news feed with full content it is fairly easy to add. The link they provide for the news feed is https://api.quantamagazine.org/feed/.

You should end up with a recipe looking something like this:
Code:
#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe

class Quanta(BasicNewsRecipe):
    title          = 'Quanta Magazine'
    oldest_article = 7
    max_articles_per_feed = 100
    language = 'en'
    encoding = 'UTF-8'

    feeds          = [
        ('Articles', 'https://api.quantamagazine.org/feed/'),
    ]
lui1 is offline   Reply With Quote