Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
First usable release
  • Loading branch information
bfishadow committed Feb 13, 2015
0 parents commit 703a807
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
20 changes: 20 additions & 0 deletions NYTChinese.py
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),
]
40 changes: 40 additions & 0 deletions Readme.md
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)
Binary file added cv_nytchinese.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mh_nytchinese.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 703a807

Please sign in to comment.