Scrapes the imio.smartweb JSON API used by www.silly.be (found via the smartweb-news/smartweb-events web components in the raw HTML) instead of needing a headless browser. Shells out to curl since Cloudflare silently blocks Python's urllib/requests TLS fingerprint. Includes Yunohost cron and nginx deployment snippets. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
11 lines
437 B
Plaintext
11 lines
437 B
Plaintext
# Cron job pour regenerer les flux RSS de Silly toutes les heures.
|
|
#
|
|
# Installation (en tant qu'utilisateur qui a les droits d'ecriture sur
|
|
# /var/www/silly-rss, par ex. root ou un utilisateur dedie) :
|
|
#
|
|
# sudo crontab -e
|
|
#
|
|
# puis coller la ligne ci-dessous en adaptant le chemin du depot :
|
|
|
|
0 * * * * flock -n /tmp/silly_rss.lock /usr/bin/python3 /home/para/Code/fluxRss/silly_rss.py /var/www/silly-rss >> /var/log/silly_rss.log 2>&1
|