| 1 |
#!/usr/bin/env python |
| 2 |
# vim:fileencoding=utf-8 |
| 3 |
from calibre.web.feeds.news import BasicNewsRecipe, classes |
| 4 |
|
| 5 |
|
| 6 |
class AdvancedUserRecipe1716097549(BasicNewsRecipe): |
| 7 |
title = 'VOX' |
| 8 |
language = 'en' |
| 9 |
__author__ = 'Spicy Poison' |
| 10 |
description = ( |
| 11 |
'Vox is a general interest news site for the 21st century. Its mission:' |
| 12 |
' to help everyone understand our complicated world, so that we can all help shape it.' |
| 13 |
) |
| 14 |
publisher = 'VOX MEDIA' |
| 15 |
oldest_article = 30 |
| 16 |
max_articles_per_feed = 50 |
| 17 |
encoding = 'utf-8' |
| 18 |
masthead_url = 'https://logonoid.com/images/vox-logo.png' |
| 19 |
remove_empty_feeds = True |
| 20 |
ignore_duplicate_articles = {'title', 'url'} |
| 21 |
scale_news_images = 600, 800 |
| 22 |
compress_news_images = True |
| 23 |
|
| 24 |
use_embedded_content = False |
| 25 |
auto_cleanup = False |
| 26 |
|
| 27 |
keep_only_tags = [ |
| 28 |
# Lede block: section breadcrumb (e.g. "Future Perfect"), h1 |
| 29 |
# title, dek, byline, publication timestamp, and hero image. |
| 30 |
classes('duet--article--lede'), |
| 31 |
# Article body container. |
| 32 |
classes('duet--layout--entry-body'), |
| 33 |
] |
| 34 |
|
| 35 |
remove_tags = [ |
| 36 |
# Social share row appended after the byline. |
| 37 |
classes('duet--article--share-buttons'), |
| 38 |
] |
| 39 |
|
| 40 |
feeds = [ |
| 41 |
('All Articles', 'https://www.vox.com/rss/index.xml'), |
| 42 |
('Abortion', 'https://www.vox.com/rss/abortion/index.xml'), |
| 43 |
('Advice', 'https://www.vox.com/rss/advice/index.xml'), |
| 44 |
('Business & Finance', 'https://www.vox.com/rss/business-and-finance/index.xml'), |
| 45 |
('Culture', 'https://www.vox.com/rss/culture/index.xml'), |
| 46 |
('Down to Earth', 'https://www.vox.com/rss/down-to-earth/index.xml'), |
| 47 |
('Energy', 'https://www.vox.com/rss/energy/index.xml'), |
| 48 |
('Even Better', 'https://www.vox.com/rss/even-better/index.xml'), |
| 49 |
('Explainers', 'https://www.vox.com/rss/explainers/index.xml'), |
| 50 |
('Features', 'https://www.vox.com/rss/features/index.xml'), |
| 51 |
('Future Perfect', 'https://www.vox.com/rss/future-perfect/index.xml'), |
| 52 |
('Health', 'http://www.vox.com/rss/health/index.xml'), |
| 53 |
('Housing', 'https://www.vox.com/rss/housing/index.xml'), |
| 54 |
('Internet Culture', 'https://www.vox.com/rss/internet-culture/index.xml'), |
| 55 |
('Life', 'https://www.vox.com/rss/life/index.xml'), |
| 56 |
('Money', 'https://www.vox.com/rss/money/index.xml'), |
| 57 |
('Press Room', 'https://www.vox.com/rss/press-room/index.xml'), |
| 58 |
('Policy', 'https://www.vox.com/rss/policy/index.xml'), |
| 59 |
('Politics', 'https://www.vox.com/rss/politics/index.xml'), |
| 60 |
('Science', 'https://www.vox.com/rss/science/index.xml'), |
| 61 |
('Techonology', 'https://www.vox.com/rss/technology/index.xml'), |
| 62 |
('The Gray Area', 'https://www.vox.com/rss/the-gray-area/index.xml'), |
| 63 |
('US Supreme Court', 'https://www.vox.com/rss/scotus/index.xml'), |
| 64 |
('World Politics', 'https://www.vox.com/rss/world-politics/index.xml'), |
| 65 |
] |