我的视频blog地址 http://www.lofter.com/blog/cloudrivers

Comprehend-Elasticsearch-Demo5

1, Crawler.py 获取网络视频的弹幕json文件
2,DataPrepare.py 提取json文件中的弹幕到txt文本文件中
3,ComprehendAgency.py 调用Comprehend分析文本格式的弹幕
4,ConvertCompToESformat.py 将Comprehend返回的json结果转换为elasticsearch格式要求的index文件
5,upload_to_elasticsearch.py 将json格式的index文件上传到elasticsearch中
6,文件打包部署到lambda


python3 -m venv v-env
source v-env/bin/activate
pip3 install requests_aws4auth
pip3 install elasticsearch
deactivate
zip -r9 ${OLDPWD}/function.zip .
cd $OLDPWD
zip -g function.zip *.py


 

 


posted @ 2020-01-02 22:56  Michael云擎  阅读(132)  评论(0编辑  收藏  举报
我的视频blog地址 http://www.lofter.com/blog/cloudrivers