Git Product home page Git Product logo

jdanks.armyd's Introduction

jdanks.armyd

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]
]

Supported platforms:

  • "youtube" - id has to be the long UC..... format
  • "dlive"
  • "bitwave"
  • "robotstreamer" - third entry is used as username
  • "trovo" - expects TROVO_CLIENT_ID envar
  • "twitch" - expects TWITCH_CLIENT_ID, TWITCH_CLIENT_SECRET envars

Environment variables

All secrets are optional; in that case, scraping from these websites will not function.

  • JDANKS_PORT · Listen port. Defaults to 80.
  • JDANKS_SSL_PORT · Listen port for HTTPS. Defaults to 443.
  • 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.

Endpoints

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

jdanks.armyd's People

Contributors

jdanks-army avatar jason-baither avatar

Stargazers

Thomas Lekanger avatar

Watchers

 avatar

jdanks.armyd's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.