项目
在 GitHub 查看
johnafish/senticomment
关于
分析 YouTube 评论的情感倾向
其他项目实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Senticomment
Senticomment is a simple little hacked together script that applies basic sentiment analysis to downloaded YouTube comments. To set up:
Installation of Libraries
It's recommended that you use virtualenv so that existing packages aren't tempered with. You'll need Python 3 installed with pip. Run:
pip install httplib2
pip install nltk
pip install csv
pip install google-api-python-client
pip install oauth2client
You'll also need to install vader.
Just go into the python console, import nltk module and use it to download the vader data.
import nltk
nltk.download('vader_lexicon')
Set Up Google Cloud
- Go to Google Cloud Console and create a new project.
- Enable the YouTube Data API v3.
- Create credentials (OAuth client ID, Application Type: Other) and download them to
client_secrets.json.
Running the Code
Run python3 main.py --videoid={your video ID here} to run the script and generate a CSV file.
Examples
python3 main.py --videoid=Zj8h3ZSc-Aw
探索相关项目
加载中…