Browse Source

update readme

liyuyi@c-top.com.cn 3 năm trước cách đây
mục cha
commit
620fac4795
1 tập tin đã thay đổi với 19 bổ sung27 xóa
  1. 19 27
      readme.md

+ 19 - 27
readme.md

@@ -1,39 +1,29 @@
 **项目功能介绍**
 
-1、每周日从巨量引擎获取近一周的优质素材。 (项目名称可以配置)<br>
-(素材数据存为了两张表:ctop_ai_material_info_from_ocean_engine 和 ctop_ai_video_info_from_ocean_engine)<br>
-2、每周一导出指定项目近一周的公司内部高质量&低质量素材,巨量引擎优质素材的脚本。(项目名称可以配置)<br>
-3、每次请求腾讯云的语音转脚本服务,会过根据signature滤掉已经请求过的素材。<br>
+1、按天依据配置的关键词定时从内外部(公司内部、快手、头条)获取优质素材的脚本和视频链接。<br>
 
 **项目启动说明**
+1、切换到main.py所在的目录<br>
+cd /data/pythonProject/video_to_word/  <br>
 
-1、git clone 最新代码<br>
- git clone http://git.tjyourong.com.cn/liyuyi/video_to_word.git <br>
+2、启动虚拟环境<br>
+conda activate video_to_word <br>
 
-2、启动获取腾讯云语音转脚本的服务<br>
-切换到目录: cd /data/pythonProject/video_to_word
-nohup /data/Miniconda3/envs/video_to_word/bin/python -u /data/pythonProject/video_to_word/main.py >/dev/null 2>&1 &
+3、拉取最新代码<br>
+git pull http://git.tjyourong.com.cn/liyuyi/video_to_word.git <br>
 
-3、定时任务配置<br>
-3-1 定期从巨量引擎获取优质素材,并转化为脚本。每周日晚上10:30执行一次<br>
-30 20  *  *  7   /data/Miniconda3/envs/video_to_word/bin/python -u  /data/pythonProject/video_to_word/get_video_from_ocean_engine.py  >> /data/pythonProject/video_to_word/logs/get_video_from_ocean_engine.log &
+4、启动服务<br>
+gunicorn main:app -b 0.0.0.0:31013 -w 4 -k uvicorn.workers.UvicornWorker <br>
 
-nohup /data/Miniconda3/envs/video_to_word/bin/python -u  /data/pythonProject/video_to_word/get_video_from_ocean_engine.py  >> /data/pythonProject/video_to_word/logs/get_video_from_ocean_engine.log &
+2、查看日志<br>
+cd /data/pythonProject/video_to_word/logs/<br>
+tail -f /data/pythonProject/video_to_word/logs/main_server.2021
 
-3-2 每周导出内部高质量&低质量,巨量引擎优质素材的脚本。每周一早上08:30 执行一次<br>
-30 8  *  *  1   /data/Miniconda3/envs/video_to_word/bin/python -u  /data/pythonProject/video_to_word/get_high_quality_script.py  >> /data/pythonProject/video_to_word/logs/get_high_quality_script.log &
-
-nohup /data/Miniconda3/envs/video_to_word/bin/python -u  /data/pythonProject/video_to_word/get_high_quality_script.py  >> /data/pythonProject/video_to_word/logs/get_high_quality_script.log &
-
-
-4、查看执行日志<br>
-cd /data/pythonProject/video_to_word/logs<br>
-tail -f /data/pythonProject/video_to_word/logs/get_high_quality_script.log<br>
-tail -f /data/pythonProject/video_to_word/logs/get_video_from_ocean_engine.log<br>
-
-
-配置定时任务:<br>
+**定时任务**
 查看定时任务:crontab -l <br>
-编辑定时任务:crontab -e<br>
+编辑定时任务:crontab -e<br>
+每天早上08:30执行<br>
+30 8 * * * /data/miniconda/envs/video_to_word/bin/python -u /data/pythonProject/video_to_word/time_task/get_material_and_script_by_query_word.py >> /data/pythonProject/video_to_word/logs/get_high_quality_material.log 2>&1
+
+**服务接口**
+http://114.117.193.186:31013/docs