-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First usable release
- Loading branch information
0 parents
commit 703a807
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python | ||
# -*- coding:utf-8 -*- | ||
from base import BaseFeedBook | ||
|
||
def getBook(): | ||
return NYTChinese | ||
|
||
class NYTChinese(BaseFeedBook): | ||
title = u'纽约时报中文网' | ||
description = u'包括“国际纵览”与“国际生活”两个全文 RSS Feeds 最近七天的文章' | ||
language = 'zh-cn' | ||
feed_encoding = "utf-8" | ||
page_encoding = "utf-8" | ||
mastheadfile = "mh_nytchinese.gif" | ||
coverfile = "cv_nytchinese.jpg" | ||
oldest_article = 7 | ||
feeds = [ | ||
(u'国际纵览', 'http://cn.nytimes.com/rss.html', True), | ||
(u'国际生活', 'http://cn.tmagazine.com/rss.html', True), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#NYT Chinese Recipe | ||
|
||
这是一个基于 [KindleEar](https://github.com/cdhigh/kindleear) 项目的 Recipe,支持将[纽约时报中文网](http://cn.nytimes.com/) RSS 内过去七天内的文章打包发送到 Kindle 设备。 | ||
|
||
##依存关系 | ||
|
||
- Google App Engine | ||
- KindleEar | ||
- Python 2.7.8 | ||
|
||
##安装方法 | ||
|
||
- 将 NYTChinese.py 脚本文件放在 books 文件夹 | ||
- 将 `cv_nytchinese.jpg` 和 `mh_nytchinese.gif` 两个图片文件放在 images 文件夹 | ||
- 重新部署 Kindle Ear | ||
- 刷新 Kindle Ear 首页,此图书会自动安装。 | ||
|
||
##卸载方法 | ||
|
||
- 从 books 文件夹中删除 NYTChinese.py 脚本文件 | ||
- 从 images 文件夹中删除 `cv_nytchinese.jpg` 和 `mh_nytchinese.gif` 两个图片文件 | ||
- 重新部署 Kindle Ear | ||
- 图书会在一天之后自动从 Kindle Ear 系统内删除 | ||
|
||
###如果需要立即生效,可以继续这么做: | ||
|
||
- 登录到 App Engine 控制面板,在 Data 选项下点击“Datastore Viewer” | ||
- 在 Query 选项卡的下拉菜单里选择 Book,删掉 title 为“纽约时报中文网”的 Book 记录即可 | ||
|
||
##版权声明 | ||
|
||
`cv_nytchinese.jpg` 和 `mh_nytchinese.gif` 两个图片文件使用了[纽约时报公司](http://www.nytimes.com/)的商标,版权属于纽约时报公司所有。 | ||
|
||
##授权 | ||
|
||
Licensed under the Apache License, Version 2.0 | ||
|
||
##其他 | ||
|
||
有疑问,请与我联系: [@bfishadow](https://twitter.com/bfishadow) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.