{"id":15009282,"url":"https://github.com/palexu/send2kindle","last_synced_at":"2025-04-09T17:23:30.024Z","repository":{"id":43252217,"uuid":"75798374","full_name":"palexu/send2kindle","owner":"palexu","description":"[已停止维护,仅供参考]基于python2.7的小说每日推送服务，可以爬取指定网站的小说，并生成精美的mobi电子书推送到你心爱的kindle上。和KindleEar相比，本项目可以部署到你个人的服务器、树莓派或者笔记本电脑上，只要安装了docker与docker-compose，就可以通过一个命令直接启动。","archived":false,"fork":false,"pushed_at":"2022-12-07T23:48:28.000Z","size":3208,"stargazers_count":53,"open_issues_count":6,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T19:23:00.309Z","etag":null,"topics":["calibre","docker","ebook","kindle","mobi","python","python27"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/palexu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-07T04:10:52.000Z","updated_at":"2024-12-27T18:52:02.000Z","dependencies_parsed_at":"2023-01-25T00:30:16.751Z","dependency_job_id":null,"html_url":"https://github.com/palexu/send2kindle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palexu%2Fsend2kindle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palexu%2Fsend2kindle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palexu%2Fsend2kindle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palexu%2Fsend2kindle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/palexu","download_url":"https://codeload.github.com/palexu/send2kindle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248075395,"owners_count":21043577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calibre","docker","ebook","kindle","mobi","python","python27"],"created_at":"2024-09-24T19:24:13.935Z","updated_at":"2025-04-09T17:23:29.995Z","avatar_url":"https://github.com/palexu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# send2kindle\n基于python2.7的小说每日推送服务，可以爬取指定网站的小说，并生成精美的mobi电子书推送到你心爱的kindle上。\n和KindleEar必须翻墙部署到GAE上相比，本项目可以部署到你个人的服务器、树莓派或者笔记本电脑上，只要安装了docker与docker-compose，就可以进行一键启动，并且占用资源更少。可惜的是目前不支持RSS订阅。\n\n项目仍处于起步阶段。\n\n## 开发中\n\n- web 界面\n\n## TODO\n\n- 增加Docker方式启动对树莓派的支持\n- 一键初始化\n- 简化配置文件\n\n## 本次更新\n\n- 现在可以生成精美的mobi格式电子书并推送到kindle上。\n- 添加对docker-compose的支持，一键启动\n- 优化配置文件\n\n## 下载以及安装\n\n### 下载\n`git clone https://github.com/palexu/send2kindle`\n\n### 配置\n将`config.json.bak`重命名为`config.json`，\n打开该文件\n\n添加你需要推送的小说,如：\n```\n{\n      \"name\": \"修真四万年\",//小说名，只用于mobi内小说名的显示\n      \"url\": \"http://www.biqudao.com/bqge7946\",//小说的目录页\n      \"count\": 10//满10条推送\n    }\n```\n\n注意，由于每次推送会把所有更新的章节都打包一起推送（相当于全文推送），因此如果添加的小说章节数过多，采集章节内容时间会很长，并且最终生成的mobi文件体积可能过大。\n\n解决方案：目前没有提供易用的界面来设置`当前已阅读到的章节`，熟悉sql的同学可以手动添加一条记录到sqlite db文件中，\n```\nINSERT INTO\nreaded(bookname, at)\nVALUES(\"书名\",\"章节名\")\n```\n\n配置你个人的smtp邮箱\n```\n    \"mail\": {\n    \"hostconf\": {\n       \"163\": {//只是一个标记\n        \"sender\": \"你的邮箱@163.com\",\n        \"password\": \"你的密码\",\n        \"host\": \"smtp.163.com\"//smtp服务器地址\n      }\n    },\n    \"receiver\": \"xxxxxx@kindle.cn\", //你的kindle邮箱地址，切记将上面的sender加入到信任列表\n    \"init_host_config\": \"163\",//上面的key值\n    \"subject\": \"\",//邮箱主题，留空即可\n    \"msgcontent\": \"deliver by send2kindle\"\n  }\n```\n\n经测试，支持126、163邮箱，其他邮箱的话，附件可能会被吞掉\n\n\n非必填项:配置推送完成后的消息提醒,通过微信公众号serverChan进行消息推送，\n详情见[Server酱](https://sc.ftqq.com/3.version)，申请一个key即可\n```\n  \"serverChan\": {\n    \"scKey\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n  }\n```\n\n## 运行方式：\n\n### 除raspberry-pi外的其他平台\n推荐使用docker以及docker-compose的方式运行\n\n安装docker以及docker-compose\n\n运行`docker-compose up -d`\n\n可以通过`docker logs -f s2k`查看系统运行的日志\n\n### raspberry-pi\n由于树莓派的cpu为ARM架构，因此本项目的dockerfile可能无法直接使用，需要改为专为ARM设计的容器，目前暂没有时间去测。计划下两次更新内将这个问题解决。\n\n## 致谢\n使用了kindleEar拆离的calibre的mobi、epub电子书生成模块,\n使用了serverChan提供的消息推送服务\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalexu%2Fsend2kindle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpalexu%2Fsend2kindle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalexu%2Fsend2kindle/lists"}