yangxuanxc / wechat_friends Goto Github PK
View Code? Open in Web Editor NEW微信好友信息分析并可视化以及自动回复微信消息
微信好友信息分析并可视化以及自动回复微信消息
作者应该是想过滤掉表情统计,这边有点小错误
analysis.py 的106行
<span.*><span>
改成 <span.*></span>
应该就可以了
你还差 一个 jieba 模块 没有引用啊
求问这是什么情况
E:\tools\python\wechat_friends-master>python analyse.py
Traceback (most recent call last):
File "analyse.py", line 6, in
from pyecharts import Bar
File "E:\tools\python3\lib\site-packages\pyecharts_init_.py", line 10, in <
module>
from pyecharts.charts.effectscatter import EffectScatter
File "E:\tools\python3\lib\site-packages\pyecharts\charts\effectscatter.py", l
ine 3, in
from pyecharts.charts.scatter import Scatter
File "E:\tools\python3\lib\site-packages\pyecharts\charts\scatter.py", line 3,
in
from PIL import Image
File "E:\tools\python3\lib\site-packages\PIL\Image.py", line 64, in
from . import _imaging as core
ImportError: cannot import name '_imaging'
运行get_user_info.py 扫码登录报错,Keystroke: 'skey',该怎么处理?
"Signature": "<span class=\"emoji emoji1f349\"></span>",
这种会导致 span class emoji这几个词出现比较多,但是没什么用
There is a mistake on the LINE 204 of the analyse.py . you mast delete a ] if you want to run it .
Login successfully as XXXคิดถึง
Traceback (most recent call last):
File "get_user_info.py", line 65, in
save_data(friends_list)
File "get_user_info.py", line 33, in save_data
json_file.write(json.dumps(frined_list,ensure_ascii=False))
UnicodeEncodeError: 'gbk' codec can't encode character '\u0e04' in position 20: illegal multibyte sequence
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
pip uninstall -y certif
pip install certifi==2015.04.28
安装了还是不行!
win10 python3.7 pip3 install pyecharts时卡在C++14依赖,但电脑实际已经安装C++14,也采用whl包来安装,还是不行;不知博主是否测试过3.7下的
如题
支持MAC和IPAD协议新微信号接入,做机器人,营销系统,客服系统,监管系统的可以看下这个API :http://www.bbaos.com/docs/index 商务合作添加微信 : damibtc
提示:ModuleNotFoundError: No module named 'jieba'
如果没有‘结巴’包的话执行以下语句安装“结巴分词包”:pip install jieba
Traceback (most recent call last):
File "E:\Programming\project\wechat_friends-master\analyse.py", line 199, in
get_pie('�Ա�ͳ��',name_list,num_list)
File "E:\Programming\project\wechat_friends-master\analyse.py", line 20, in get_pie
totle = item_num_list[0]+item_num_list[1]+item_num_list[2]
IndexError: list index out of range
itchat 这个库呢》》
感谢作者分享代码!在这里给后来人提个醒,作者用的pyecharts的版本是v0.5.x版,不是v1.0.x版本,这两个版本完全不兼容,跑代码的时候要注意!这是pyecharts的官网说明https://github.com/pyecharts/pyecharts
totle = item_num_list[0]+item_num_list[1]+item_num_list[2]
有时候个性签名云图中最高频的词是span和class
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: mismatched tag: line 63, column 4
这个是什么错误
analyse.py
运行报如下错误:
UnicodeEncodeError: 'UCS-2' codec can't encode characters in position 6-6: Non-BMP character not supported in Tk
Traceback (most recent call last):
File "get_user_info.py", line 69, in
user = itchat.search_friends(name=u'二胖')[0]
IndexError: list index out of range
如题
I haven't found the file path related to friends.json.
And how can i create it?
what's the problem?
Collecting PIL
Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL
def save_data(frined_list):
out_file_name = "./data/friends.json"
with open(out_file_name, 'w',encoding='utf-8') as json_file:
json_file.write(json.dumps(frined_list,ensure_ascii=False))
if name == 'main':
in_file_name = './data/friends.json'
with open(in_file_name,encoding='utf-8') as f:
friends = json.load(f)
Traceback (most recent call last):
File "/Users/andy/PycharmProjects/wechat_friends-master/analyse.py", line 199, in
get_pie('性别统计', name_list, num_list)
File "/Users/andy/PycharmProjects/wechat_friends-master/analyse.py", line 24, in get_pie
subtitle=subtitle, subtitle_text_size=25, width=800, height=800)
TypeError: init() got an unexpected keyword argument 'page_title'
第一个 未引用 jieba module
解决 : sudo pip3 install jieba
第二个 请注释掉“二胖”语句 不然会报错
第三个: 只显示南海问题:
是因为作者地图数据包引用错误:
解决办法
pip3 install echarts-countries-pypkg
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.