Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bpazy/emotion
监控微博,分析情绪值
https://github.com/bpazy/emotion
Last synced: 1 day ago
JSON representation
监控微博,分析情绪值
- Host: GitHub
- URL: https://github.com/bpazy/emotion
- Owner: Bpazy
- Created: 2017-02-15T15:34:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-06T03:43:15.000Z (almost 8 years ago)
- Last Synced: 2024-11-09T08:43:09.633Z (about 2 months ago)
- Topics: weibo
- Language: Java
- Size: 112 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Emotion
=======
监测某账号的微博情绪值。
(比如我女朋友发微博了,我这就收到邮件,接着该点赞点赞,该评论评论,该买买买就买买买)
首次运行会自动创建配置文件(emotion.json)和程序缓存(local.txt),并会扫描一遍所有微博。
>目前扫描微博调用的是[prprpr.me](http://prprpr.me)的微博RSS API, 感谢作者的无私奉献,但该API在最新一条微博的时间上有BUG,第一条微博的时间总是会自己跳动,所以后期本项目会改由自己写的微博RSS API。配置文件可自动更新,扫描频率`1次/min`。
扫描微博频率`2次/min`。配置文件格式:
```
{
"uid": "0000000000", //被检测用户微博UID
"filters": [ //过滤词,微博含有过滤词将不参与分析
"转发"
],
"threshold": 0, //阈值,负情绪阈值,为0则分析所有微博,并发送信息到邮箱
"secretId": "Your secretId", //腾讯文智申请的secretID
"secretKey": "Your secretKey", //腾讯文智申请的secretKey
"emailHostName": "smtp.163.com",
"emailPort": 465,
"emailUserName": "YourUserName", //发送邮件的账号
"emailPassword": "YourPassword", //发送邮件的账号的密码
"emails": [
"[email protected]" //接受邮件通知的账号
],
"mobiles": [
"12345678910" //接受短信通知的手机号码,开发中
]
}
```### 构建
`gradlew fatJar` ,构建的包在`./build/libs/`下。
### 运行
`java -jar ./build/libs/emotion-*.jar`