This is a bot. It parses a list of AVM security notifications and notices, when new notifications appear on the list.
The bot is written in JavaScript that runs on top of Node.js and puppeteer.
Make sure to set headless to true in avm.js
when deploying the bot to a server.
initialize: async () => {
avm.browser = await puppeteer.launch({
headless: false
});
On an Ubuntu server 18.04 LTS you need to:
apt-get install nodejs npm
cd /usr/local/sbin/scrape-avm-security-notifications
npm install puppeteer
The following packages are needed:
gconf-service
libasound2
libatk1.0-0
libatk-bridge2.0-0
libc6
libcairo2
libcups2
libdbus-1-3
libexpat1
libfontconfig1
libgcc1
libgconf-2-4
libgdk-pixbuf2.0-0
libglib2.0-0
libgtk-3-0
libnspr4
libpango-1.0-0
libpangocairo-1.0-0
libstdc++6
libx11-6
libx11-xcb1
libxcb1
libxcomposite1
libxcursor1
libxdamage1
libxext6
libxfixes3
libxi6
libxrandr2
libxrender1
libxss1
libxtst6
ca-certificates
fonts-liberation
libappindicator1
libnss3
lsb-release
xdg-utils
wget
As Chrome is triggered by a cron job that runs as root, some additional configuration in avm.js
is required
initialize: async () => {
avm.browser = await puppeteer.launch({
headless: true, args: ['--no-sandbox', '--disable-setuid-sandbox']
});
If you like this project, you can give me a cup of coffee :)
Copyright (C) 2021-2024 Ralph Plawetzki
The scrape-avm-security-notifications logo is borrowed from GNOME Builder, that is designed by Christian Hergert. The logo is published under the GNU General Public License (GPLv3).