Skip to content

Conversation

@Linusp
Copy link
Owner

@Linusp Linusp commented Jul 20, 2019

No description provided.

@Linusp
Copy link
Owner Author

Linusp commented Jul 20, 2019

@einverne pls review

@Linusp
Copy link
Owner Author

Linusp commented Jul 20, 2019

@einverne 增加了 command get-subscriptions,可以按文件夹过滤结果,可以按 csv/json 格式输出到文件

csv 格式输出

$ python -m inoreader.main  get-subscriptions -f "04-NLP"
"feed/http://www.52nlp.cn/feed"	"我爱自然语言处理"	"http://www.52nlp.cn/feed"	"04-NLP"
"feed/http://www.hankcs.com/feed"	"码农场"	"http://www.hankcs.com/feed"	"04-NLP"

json 格式输出

$ python -m inoreader.main  get-subscriptions -f "04-NLP" --out-format json
[
    {
        "id": "feed/http://www.52nlp.cn/feed",
        "title": "我爱自然语言处理",
        "url": "http://www.52nlp.cn/feed",
        "folders": "04-NLP"
    },
    {
        "id": "feed/http://www.hankcs.com/feed",
        "title": "码农场",
        "url": "http://www.hankcs.com/feed",
        "folders": "04-NLP"
    }
]

上面的 python -m inoreader.main 在安装后可以替换为 inoreader

@Linusp
Copy link
Owner Author

Linusp commented Jul 20, 2019

还有一个通过 stream id 得到 content 的,我先睡觉,明天再搞 😄

@Linusp Linusp changed the title [WIP] update cli update cli Jul 21, 2019
@Linusp Linusp merged commit a57f8d8 into master Jul 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants