BlogWordCloud
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
周中平 412165cef7
fix(bug): oh trust me!
6 months ago
data fix(bug): oh trust me! 6 months ago
img fix(bug): oh trust me! 6 months ago
.gitignore fix(bug): oh trust me! 6 months ago
README.md docs(README): update README.md 6 months ago
index.py feture: just do it 6 months ago
onojyun.com.py fix(bug): oh trust me! 6 months ago

README.md

博客词云图生成

一键生成个人博客词云图

入门

环境

python > 3.9.7

支持库:

pip install jieba
pip install wordcloud
pip install numpy
pip install Image

目录

  • data/:待处理文本数据,遍历当前目录读取后合并文本数据;支持 ANSI、UTF-8 等编码,其它编码在函数中调用中显式指定编码格式,默认 UTF-8。
  • img/:词云图蒙版,不理解蒙版请看效果图。
  • index.py:词云图生成脚本,运行后会在当前目录生成 WordCloud.jgp

运行

python index.py

演示

效果图

建议选一个好的蒙版,效果图会更好

协议

自由使用