The jdanks.army
daemon. Run npm ci && npm start
to get it going.
Reads input from ./people.json
and starts scrapin'.
people
JSON format:
[
[platform, id, ...optional]
]
"youtube"
- id has to be the longUC.....
format"dlive"
"bitwave"
"robotstreamer"
- third entry is used as username"trovo"
- expectsTROVO_CLIENT_ID
envar"twitch"
- expectsTWITCH_CLIENT_ID
,TWITCH_CLIENT_SECRET
envars
All secrets are optional; in that case, scraping from these websites will not function.
JDANKS_PORT
· Listen port. Defaults to80
.JDANKS_SSL_PORT
· Listen port for HTTPS. Defaults to443
.JDANKS_SSL_PRIVKEY
· Location of private key. Defaults to/etc/certs/api.jdanks.army/privkey.pem
.JDANKS_SSL_CERT
· Listen of certificate. Defaults to/etc/certs/api.jdanks.army/fullchain.pem
.TROVO_CLIENT_ID
· for Trovo support.TWITCH_CLIENT_ID
TWITCH_CLIENT_SECRET
· for Twitch support.
Exposed endpoints are
/streams
· returns JSON objects of scraped data, formatted as:-
{ platform, id, name, avatar, live, title, viewers }
-
/src
· returns license information and link to source code