YouTube评论爬虫编写

1.YouTube-Sentiment-Analysis安装; pip install youtube-sentiment;
https://pypi.org/project/youtube-sentiment/
https://www.ctolib.com/sachin-bisht-YouTube-Sentiment-Analysis.html
修改comment_downloader comment_extract 的 GOOGLE API KEY。

2.Wordcloud安装; pip install wordcloud; 解决中文不显示WordCloud(font_path="./kai.ttf)

3.progress_bar安装; pip install progress_bar

4.YouTube Data API v3申请;
https://console.developers.google.com/ STEP1.建立项目;STEP2.库搜索YOUTUBE;STEP3.申请凭据API。

5.YouTube视频总览; https://socialblade.com/youtube/channel/UCoito7zjwEdj86Wz2X97W6w

6.参考文章;
https://blog.csdn.net/weixin_43622131/article/details/103688605
https://github.com/zf617707527/-youtube-

7.待实现文章。
https://blog.csdn.net/wangyueban/article/details/94588858 python api 评论
https://nlp.stanford.edu/software/tagger.shtml Stanford Part-of-Speech tagger (POS Tagger)
https://pypi.org/project/sentistrength/ SentiStrength
https://developers.google.com/youtube/v3/quickstart/python API PYTHON
https://developers.google.com/youtube/v3/docs/commentThreads/list?apix=true API
https://github.com/zf617707527/youtube2.0 作者更新关键字搜索版本

8.再次更新:
更新直接读取txt文本中的videoid;参加已更新文章。
更新list out of range错误,range从0开始。

9.上传源码。其中driverreadtext.py为读取txt文档中的videoid,driver.py为输入videoid。
liziqi.zip

参考文章:
https://github.com/youtube
https://www.pythonheidong.com/blog/article/375755/983d55976fbdb338d93e/
https://python.gotrained.com/youtube-api-extracting-comments/
https://blog.csdn.net/weixin_37746009/article/details/94367162
https://www.cnblogs.com/2bjiujiu/p/9063864.html
https://python-learnnotebook.blogspot.com/2019/12/python-indexerror-list-index-out-of.html
https://cloud.tencent.com/developer/article/1398895
https://www.cnblogs.com/lxc1997ye/p/11665439.html #问题TypeError: init() takes 1 positional argument but 2 were given解决方案
http://www.soolco.com/post/63910_1_1.html
https://www.fujieace.com/python/indexerror-list-index-out.html

本文链接:

https://ma.ge/archives/ytbspider.html
1 + 1 =
快来做第一个评论的人吧~