Coder Social home page Coder Social logo

kindlerss's Introduction

kindlerss

kindlerss订阅

  • 目的

    目前可以进行RSS推送的网站基本都要收费,而开源的软件都需要GAE或者VPS,所以我产生了用PHP写一个可以运行在虚拟主机上的Kindle RSS自动推送软件。

  • 思路

    主页面(配置参数) -> 主程序(后台运行,抓取HTML网页) -> 文本处理(各RSS站文章内容处理方式) -> 主程序(将所有RSS源汇总到一个HTML界面中) -> 格式转换(转换为PDF或者EPUB或者WORD等) -> 发送邮件(SMTP服务器发送邮件) 如果想加入推送源,在下面按格式加即可,
    但是注意必须有相应的文本处理文件,
    主程序会调用文本处理文件的函数:
    (String) getXxxContent ($html)
    函数说明:主程序调用此函数,获得文章内容。
    Xxx为PHP源文件名,同时为<input>中的value名,首字母大写
    参数说明:html:主程序通过推送源得到的HTML源码
    返回值:需要一个String类型的返回值,主程序
    不进行校验,如果检测不到建议返回“抓取内容失败”等明文内容
    (String) getXxxItemURL (void)
    函数说明:主程序调用此函数,获得RSS源地址
    参数:无
    返回值:RSS源地址

  • 进展

    其他的都好说,只是格式转换这方面有点问题,如果是虚拟主机肯定不能运行kindlegen,然而http://cn.office-converter.com 转换出来的东西不知道为什么没有图片,转成PDF的话又需要太多依赖,所以我现在卡在这里,还希望大神帮忙。

  • 名字

    这个目前还没有想好,就暂时用kindlerss这个名字吧。

  • 其他

    本人联系方式

    QQ:907247545

kindlerss's People

Contributors

evyde avatar

Stargazers

KAAAsS avatar

Watchers

 avatar

kindlerss's Issues

Some questions about scheduled task

About scheduled task, a simple virtual server won't allow users to modify "php.ini" or use shell. For php, as u know, using set_time_limit(0); and ignore_user_abort(true); won't be a good choice. But the cron can be a good way, because cPane support it.

WHY not using python???

Suggestion about file converting

好烦啊懒得打英文2333333333

  1. 可以看看这里:https://developers.zamzar.com/pricing 转换效果不错,除了......当初es2k也想用这个API来着,可是价格真心爆炸。
  2. 其实自己出钱搭个文档转换服务器也不是问题......DigitalOcean或者Vultr啊搬瓦工之流都最低5刀per month,文件可以托管到7牛云(免费20GB)。程序的话就用kindlegen的linux版本就ok,其实说真的直接用树莓派+花生壳整也是可以的,那就真的是省钱了23333333

P.S.以上谨个人观点。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.