calibre/recipes/liberty_times.recipe
un-pogaz 8ba35b97b5 fix trailing comma (manual)
ruff 'COM818'
2025-01-24 11:14:19 +01:00

42 lines
1.7 KiB
Python

# -*- coding: utf-8 -*-
__license__ = 'GPL v3'
# dug from http://www.mobileread.com/forums/showthread.php?p=1012294
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1277443634(BasicNewsRecipe):
title = u'自由電子報'
oldest_article = 1
max_articles_per_feed = 100
feeds = [(u'即時', u'https://news.ltn.com.tw/rss/all.xml'),
(u'政治', u'https://news.ltn.com.tw/rss/politics.xml'),
(u'社會', u'https://news.ltn.com.tw/rss/society.xml'),
(u'生活', u'https://news.ltn.com.tw/rss/life.xml'),
(u'評論', u'https://news.ltn.com.tw/rss/opinion.xml'),
(u'國際', u'https://news.ltn.com.tw/rss/world.xml'),
(u'財經', u'https://news.ltn.com.tw/rss/business.xml'),
(u'體育', u'https://news.ltn.com.tw/rss/sports.xml'),
(u'娛樂', u'https://news.ltn.com.tw/rss/entertainment.xml'),
(u'地方', u'https://news.ltn.com.tw/rss/local.xml'),
(u'人物', u'https://news.ltn.com.tw/rss/people.xml'),
(u'蒐奇', u'https://news.ltn.com.tw/rss/novelty.xml')
]
__author__ = 'einstuerzende, updated by Eddie Lau'
__version__ = '1.2'
language = 'zh'
publisher = 'Liberty Times Group'
description = 'Liberty Times (Taiwan)'
category = 'News, Chinese, Taiwan'
remove_javascript = True
use_embedded_content = False
no_stylesheets = True
encoding = 'utf-8'
conversion_options = {'linearize_tables': True}
masthead_url = 'https://cache.ltn.com.tw/images/rwd_ltnlogo.png'
cover_url = 'https://cache.ltn.com.tw/images/rwd_ltnlogo.png'
auto_cleanup = True