# voa feed **Repository Path**: kmboot/voa-feed ## Basic Information - **Project Name**: voa feed - **Description**: 抓取VOA Standard英语新闻,自动播放mp4,也可以结合app学习 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2020-04-06 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # **voa feed** ### Description 抓取VOA Standard英语新闻,自动播放mp4. http://m.iyuba.cn ## **Run in Docker** #### 1, get docker download the docker: https://www.docker.com/get-started #### 2, pull image ```docker pull registry.cn-hangzhou.aliyuncs.com/mead/voa_feed``` #### 3, run image ```docker run registry.cn-hangzhou.aliyuncs.com/mead/voa_feed``` #### 4, manually ```docker run -it registry.cn-hangzhou.aliyuncs.com/mead/voa_feed /bin/bash``` then ```node voa_docker.js``` get data ```cd /home/node/data``` #### 5, copy to host Copy file from container: ```docker cp voa_feed:/home/node/data /Users/{your_pc_path}/data``` [root@localhost macbook]# docker images REPOSITORY TAG IMAGE ID CREATED registry.cn-hangzhou.aliyuncs.com/mead/voa_feed latest ec6b8994b9a1 34 minutes ago [root@localhost macbook]# ```docker run -it registry.cn-hangzhou.aliyuncs.com/mead/voa_feed /bin/bash``` root@dad7301dfb60:/home/node# ```ls``` data node_modules package-lock.json template.html voa_docker.js root@dad7301dfb60:/home/node# ```node voa_docker.js``` root@dad7301dfb60:/home/node# ```cd data/``` root@dad7301dfb60:/home/node/data# ```ls``` Here is the document list... ## **Run in local** this version will generate the PDF docuemnt. download this repository change the directory to the ${folder} contains the voa_en.js cd /path/${folder} install the wkhtmltopdf from: https://wkhtmltopdf.org/downloads.html install the nodejs from: https://nodejs.org/en/download/ then run following cmd: npm install wkhtmltopdf npm install puppeteer npm install open node voa_en.js - then you'll see the Safari open the video... ## Build your docker image See: https://gitee.com/kmboot/voa-feed/tree/master/docker ```docker build -t voa_feed .``` ## Run in Kubernates See: https://gitee.com/kmboot/voa-feed/blob/master/kubernates/README.md See: https://gitee.com/kmboot/voa-feed/blob/master/kubernates/voa_feed.yaml ## Enviroment NodeJS v12.16.1 puppeteer LATEST: https://github.com/puppeteer/puppeteer/ wkhtmltopdf 0.12.5 (with patched qt) MacOS Catalina 10.15.4 (19E266)