morawskim / packtpub-free-learning Goto Github PK
View Code? Open in Web Editor NEWUse puppeteer to extract a title of daily free Packt Publishing eBook and send notification to rocket chat
License: MIT License
Use puppeteer to extract a title of daily free Packt Publishing eBook and send notification to rocket chat
License: MIT License
Update npm packages.
Some of them have vulnerabilities.
At Apr 06 07:53:07
We get Error: Navigation timeout of 30000 ms exceeded
.
The packpub site was not respond/load within 30s.
We increase timeout to 45s.
https://pptr.dev/#?product=Puppeteer&version=v2.1.1&show=api-pagegotourl-options
We give up service and timer units of systemd.
Our docker's image will be always running. Thanks to node-cron package our script will be called only once a day. If something bad happend and the container exits, docker can restart container.
Setup integration with codecov. Send jest coverage report to codecov. Add badge to README.md file.
Update to puppeteer 2
To docker-compose
file add configuration for rocketchat's service.
Write js script to provisioning rocketchat service. This script should add incoming integration.
After added integration should update .env
file.
Finally add this script to make init
target
Instead of using systemd timer to download information about free book use nest-schedule.
In this way, we remove dependency on configuring systemd.
We don't want HTTP application. Only CLI command which we run in docker container. This library also has support for retry if error.
More research is required to check it is even possible.
https://github.com/miaowing/nest-schedule
Other solution is using airflow - https://airflow.apache.org/
To hub.docker.com we publish:
latest
stable
Change docker image from morawskim/puppeteer-core
to morawskim/node10-google-chrome
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.