Skip to content

wikimedia-france/wikiconvention-schedule-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wikiconvention-schedule-parser

Pré-requis

apt install python3 python3-pip git
pip3 install pyquery

Installation

cd /var/www/html
git clone https://github.com/wikimedia-france/wikiconvention-schedule-app.git
git clone https://github.com/wikimedia-france/wikiconvention-schedule-parser.git

(Remplacer YYYY par l'année, ex: 2017)

cd wikiconvention-schedule-app
git checkout YYYY
git config --local user.email tech@wikimedia.fr
git config --local user.name wikimedia-france
git config --local push.default simple

Configuration

cd ../wikiconvention-schedule-parser
cat ./sync.sh

Remplacer dans le fichier sync.sh les variables avec les valeurs qui vont bien

  • Lieu de l'application :
APP="/var/www/html/wikiconvention-schedule-app"
  • Page META a executer (Remplacer YYYY par l'année, ex: 2017)
META="https://meta.wikimedia.org/w/api.php?action=parse&format=json&text=%7B%7B%3AWikiConvention+francophone%2FYYYY%2FProgramme%7Cshow%3DSimple%7D%7D&prop=text"

Example : Bac à sable API

Synchronization

crontab -e

Ajouter la ligne suivante :

* * * * * /var/www/html/wikiconvention-schedule-parser/sync.sh >> /var/log/parser.log

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published