Trouve un rendez-vous covid près de chez vous et vous notifie via PushBullet.
Une version améliorée de ce script est disponible ici : https://github.com/neoPix/covid-check
- Node 12
| import { gotScraping } from "got-scraping"; | |
| import { CookieJar } from "tough-cookie"; | |
| import { URLSearchParams, parse as parseUrl } from "url"; | |
| import { parse as parseHtml } from "node-html-parser"; | |
| const parse = (body) => parseHtml(new TextDecoder("windows-1252").decode(body)); | |
| const BASE_URL = "https://www.babelio.com"; | |
| /** |
Trouve un rendez-vous covid près de chez vous et vous notifie via PushBullet.
Une version améliorée de ce script est disponible ici : https://github.com/neoPix/covid-check
| const { promisify } = require("util"); | |
| const jwtVerify = promisify(require("jsonwebtoken").verify); | |
| const httpGet = promisify(require("request")); | |
| /** | |
| * Use the result of a function to maintain a cached state | |
| * @param {Function} fn The function to call to hydrate the cache | |
| */ | |
| const cache = fn => { | |
| let cache = undefined; |
| https://twitter.com/malwareunicorn/status/1040626508295884806 |
| <style> | |
| .gallery { | |
| list-style: none; | |
| padding: 0; | |
| } | |
| .gallery li { | |
| display: inline-block; | |
| } | |
| .gallery li img { | |
| max-width: 120px; |