Git Product home page Git Product logo

zhihu_tbgx's Introduction

一个知乎特别关心脚本,可以设定关注几个用户,当有新的动态的时候会发送邮件给你

配置文件

使用前复制一份配置文件模板conf.json.exampleconf.json,修改配置文件conf.json

{
    "mail_sender": "[email protected]", # 发件人地址
    "login_passwd": "passwd_here",      # 发件人密码
    "mail_reciver": "[email protected]", # 收件人地址
    "smtp_server": "smtp.163.com",      # 发信服务器
    "user_slugs": [                     # 需要关注的用户
        "xie-bing-81-95",
        "zhao-hui-36-5"
    ]
}

得注册一个邮箱,然后将邮箱的发件人地址和密码、收件人地址、邮件服务器配置好,然后可以测试邮件是否能够正常发送

python sendemail.py "this is a test mail from zhihu_TBGX"

不出意外会你会收到一封标题文知乎特别关心邮件测试的邮件,发信没有问题之后修改配置文件中的关注用户(user_slugs)部分,对于用户https://www.zhihu.com/people/zhao-hui-36-5/activities的user_slug为zhao-hui-36-5

启动脚本

python zhihu_TBGX.py

付了一个supervisor的配置文件zhihu.supervisor.conf

zhihu_tbgx's People

Contributors

zhaohui8969 avatar

Watchers

 avatar  avatar

Forkers

hysian

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.