获取其他用户对自己微博的评论,计算情绪值,绘出变化曲线。
需要修改 weibo_sentiment/settings.py 的包括:
- app_key: 微博应用的 app_key
- app_secret: 微博应用的 app_secret
- base_url: 微博应用填写的域名
- redirect_url: 微博应用填写的回调地址
MIT
微博粉丝情绪分析
* Running on http://127.0.0.1:8001/ (Press CTRL+C to quit)
* Restarting with stat
Traceback (most recent call last):
File "weibo_sentiment/main.py", line 24, in <module>
from weibo_sentiment import (
File "/home/www/weibo_sentiment/weibo_sentiment/weibo_model.py", line 10, in <module>
from snownlp import SnowNLP
File "/usr/local/lib/python2.7/dist-packages/snownlp/__init__.py", line 5, in <module>
from . import seg
File "/usr/local/lib/python2.7/dist-packages/snownlp/seg/__init__.py", line 12, in <module>
segger.load(data_path, True)
File "/usr/local/lib/python2.7/dist-packages/snownlp/seg/seg.py", line 23, in load
self.segger.load(fname, iszip)
File "/usr/local/lib/python2.7/dist-packages/snownlp/seg/y09_2047.py", line 51, in load
data = f.read()
File "/usr/lib/python2.7/gzip.py", line 254, in read
self._read(readsize)
File "/usr/lib/python2.7/gzip.py", line 313, in _read
self._add_read_data( uncompress )
File "/usr/lib/python2.7/gzip.py", line 331, in _add_read_data
self.extrabuf = self.extrabuf[offset:] + data
MemoryError
Traceback (most recent call last):
File "weibo_sentiment/main.py", line 24, in <module>
from weibo_sentiment import (
File "/home/www/weibo_sentiment/weibo_sentiment/weibo_model.py", line 10, in <module>
from snownlp import SnowNLP
ImportError: No module named snownlp
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.