Socket
Socket
Sign inDemoInstall

zhihu-answer-wordcloud

Package Overview
Dependencies
219
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    zhihu-answer-wordcloud

知乎问题热门回答词云


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

zhihu-answer-wordcloud

突然翻到两年前为了想知道知乎的一个问题下一共有多少个回答是黑詹姆斯的而写的一个简单爬虫程序,简单封装成 cli 工具方便调用。

安装

# npm i -g zhihu-answer-wordcloud

因为依赖了 Highcharts,安装中途可能会弹出来一些安装 Highcharts 的选项,主要是版本选择 7.x.x 和要选择 WordCloud 插件

86D0DC69-DF3B-4CA1-9F6E-B47FC942FEF6

Ps: 因为很久的项目,测试只有在 Node 8 和 Node 10 能跑成功

使用

[2:46:04] xlaoyu:zhihu-answer-hot $ zhwc --help
/Users/xlaoyu/workspaces/github/zhihu-answer-hot
Usage: zhwc <answerId>

选项:
  --version     显示版本号                                                [布尔]
  --number, -n  需要统计多少条回答, 0 表示获取全部,默认:100
                                                            [数字] [默认值: 100]
  --path, -p    图片存储路径,默认:当前命令执行路径                    [字符串]
  --words, -w   词云最多显示多少个词语,默认:20             [数字] [默认值: 20]
  --help        显示帮助信息                                              [布尔]
[2:46:09] xlaoyu:zhihu-answer-hot $ zhwc 328077021

效果

word-cloud2

License

MIT @ xlaoyu

Keywords

FAQs

Last updated on 22 Mar 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc