Giter Site home page Giter Site logo

zs's Introduction

zs

Dependencies

python>=3.6

Installation

pip install git+https://github.com/Linusp/zs.git

Usage

zs-tg

  • fetch-msgs

    zs-tg fetch-msgs -n CHATNAME -d "2020-01-01" -l 100 -o messages.json

zs-rss

  • create-db

  • fetch-wx-articles

    zs-rss fetch-wx-articles -n WECHAT_ARTICLES_CHANNEL -d 2020-04-01 -l 100
  • add-wx-articles

    zs-rss add-wx-articles -i articles.json

    example content of articles.json:

    {
        "http://mp.weixin.qq.com/s?__biz=MzIwMTc4ODE0Mw%3D%3D&mid=2247498353&idx=1&sn=19a6baac027018aeb76a688a9011cfde": {
            "name": "PaperWeekly",
            "title": "AI未来说 | 听大牛论自动驾驶领域干货,看无人驾驶小车真实运作",
            "desc": "第七期自动驾驶专场来了",
            "url": "http://mp.weixin.qq.com/s?__biz=MzIwMTc4ODE0Mw%3D%3D&mid=2247498353&idx=1&sn=19a6baac027018aeb76a688a9011cfde",
            "date": "2019-07-17 12:27:14+00:00",
            "sent": true
        },
        "http://mp.weixin.qq.com/s?__biz=MzIwMTc4ODE0Mw%3D%3D&mid=2247498353&idx=2&sn=caec95b9b57eac4cf1c6fa8cce99b4a6": {
            "name": "PaperWeekly",
            "title": "拿不到offer全额退款 | 编程测试与数据竞赛特训",
            "desc": "一站式解决找工作最大的两个问题:编程测试和项目经历",
            "url": "http://mp.weixin.qq.com/s?__biz=MzIwMTc4ODE0Mw%3D%3D&mid=2247498353&idx=2&sn=caec95b9b57eac4cf1c6fa8cce99b4a6",
            "date": "2019-07-17 12:27:15+00:00",
            "sent": true
        }
    }
  • list-wx-articles

    zs-rss list-wx-articles -n 晚点LatePost --status unsent

    example output:

    [2020-04-01 12:10:49+00:00] 晚点LatePost -- 对话读者:晚点一周年,他们的留言让我们热泪盈眶
    [2020-04-02 20:28:01+00:00] 晚点LatePost -- BIGO:全球化夹缝中的生存冠军
    [2020-04-08 20:26:51+00:00] 晚点LatePost -- 晚点独家|好未来披露员工销售造假始末
    [2020-04-10 17:49:41+00:00] 晚点LatePost -- 对话华裔科学家何大一:群体免疫不如全世界隔离封锁
    [2020-04-10 17:49:41+00:00] 晚点LatePost -- 腾讯希望借5G实现内外打通,从松散的联盟体向生态体过渡
    [2020-04-14 14:36:53+00:00] 晚点LatePost -- 晚点独家|B站密集修补短板应对群雄围猎
    [2020-04-14 14:37:00+00:00] 晚点LatePost -- 快讯|滴滴新成立用户增长部 冲刺“0188”战略目标
    
  • send-wx-articles

    zs-rss send-wx-articles -n 晚点LatePost -l 100
  • gen-wx-scenario

    zs-rss gen-wx-scenario -t kz -n 晚点LatePost -i postlate --kz-topic-id k69QJvO82RKoA -o postlate.json

    or

    zs-rss gen-wx-scenario -t efb -n 晚点LatePost -i postlate -o postlate.json
  • gen-daily-scenario

    zs-rss gen-daily-scenario --feed-url "https://www.gcores.com/rss" -n 机核 -o gcore.json

zs's People

Contributors

linusp avatar dependabot[bot] avatar

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.