| 1 |
# -*- coding: utf-8 -*- |
| 2 |
__license__ = 'GPL v3' |
| 3 |
# dug from http://www.mobileread.com/forums/showthread.php?p=1012294 |
| 4 |
|
| 5 |
|
| 6 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 7 |
|
| 8 |
|
| 9 |
class AdvancedUserRecipe1277443634(BasicNewsRecipe): |
| 10 |
title = '自由電子報' |
| 11 |
oldest_article = 1 |
| 12 |
max_articles_per_feed = 100 |
| 13 |
|
| 14 |
feeds = [ |
| 15 |
('即時', 'https://news.ltn.com.tw/rss/all.xml'), |
| 16 |
('政治', 'https://news.ltn.com.tw/rss/politics.xml'), |
| 17 |
('社會', 'https://news.ltn.com.tw/rss/society.xml'), |
| 18 |
('生活', 'https://news.ltn.com.tw/rss/life.xml'), |
| 19 |
('評論', 'https://news.ltn.com.tw/rss/opinion.xml'), |
| 20 |
('國際', 'https://news.ltn.com.tw/rss/world.xml'), |
| 21 |
('財經', 'https://news.ltn.com.tw/rss/business.xml'), |
| 22 |
('體育', 'https://news.ltn.com.tw/rss/sports.xml'), |
| 23 |
('娛樂', 'https://news.ltn.com.tw/rss/entertainment.xml'), |
| 24 |
('地方', 'https://news.ltn.com.tw/rss/local.xml'), |
| 25 |
('人物', 'https://news.ltn.com.tw/rss/people.xml'), |
| 26 |
('蒐奇', 'https://news.ltn.com.tw/rss/novelty.xml'), |
| 27 |
] |
| 28 |
|
| 29 |
__author__ = 'einstuerzende, updated by Eddie Lau' |
| 30 |
__version__ = '1.2' |
| 31 |
language = 'zh' |
| 32 |
publisher = 'Liberty Times Group' |
| 33 |
description = 'Liberty Times (Taiwan)' |
| 34 |
category = 'News, Chinese, Taiwan' |
| 35 |
remove_javascript = True |
| 36 |
use_embedded_content = False |
| 37 |
no_stylesheets = True |
| 38 |
encoding = 'utf-8' |
| 39 |
conversion_options = {'linearize_tables': True} |
| 40 |
masthead_url = 'https://cache.ltn.com.tw/images/rwd_ltnlogo.png' |
| 41 |
cover_url = 'https://cache.ltn.com.tw/images/rwd_ltnlogo.png' |
| 42 |
auto_cleanup = True |