portail/scripts/generate.sh

23 lines
765 B
Bash
Raw Normal View History

2019-08-17 00:37:23 +00:00
#!/bin/sh
2019-08-20 09:47:39 +00:00
2019-08-17 00:37:23 +00:00
# idees
2019-08-20 09:50:31 +00:00
wget -O ./site/data/idees.json https://idees.crapaud-fou.org/stats.php
2019-08-17 00:37:23 +00:00
2019-08-20 12:17:45 +00:00
# wiki
wget -O ./site/data/wiki.json https://wiki.crapaud-fou.org/stats.php
2019-08-26 18:18:31 +00:00
# rencontres
wget -O ./site/data/rencontres.json https://wiki.crapaud-fou.org/rencontres.php
2019-08-27 04:32:43 +00:00
# tube
2022-07-19 14:54:41 +00:00
wget -O ./site/data/tube.json "https://tube.crapaud-fou.org/api/v1/videos?sort=-publishedAt&isLocal=1&count=10"
2019-08-27 04:32:43 +00:00
2019-08-22 01:32:26 +00:00
# chat
2022-07-18 09:13:30 +00:00
# wget -O ./site/data/chat_stat_monthly.json https://idees.crapaud-fou.org/data/chat_stat_monthly.json
# wget -O ./site/data/chat_stat_daily.json https://idees.crapaud-fou.org/data/chat_stat_daily.json
# wget -O ./site/data/chat.json https://idees.crapaud-fou.org/data/chat.json
2019-08-30 19:07:25 +00:00
# global
2022-07-18 09:13:30 +00:00
# pip3 install -r ./scripts/requirements.txt
2019-08-30 19:07:25 +00:00
python3 ./scripts/generate_global_info.py