Skip to content

Cross-streaming-platform API used for Norwegian streamer directory.

License

Notifications You must be signed in to change notification settings

LiveStreamNorge/lsnd

Repository files navigation

lsnd

Cross-streaming-platform API used for the Norwegian streamer directory on LiveStreamNorge

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"
  • "kick"
  • "robotstreamer" - third entry is used as username
  • "trovo" - expects TROVO_CLIENT_ID envar
  • "twitch" - expects TWITCH_CLIENT_ID, TWITCH_CLIENT_SECRET envars
  • "guac"
  • "tiktok"
  • "angelthump"

Config file

A config file (config.json) is loaded using nconf. All secrets are optional; in that case, scraping from these websites will not function.

{
  "http": {
    "port": "9080",
    "ssl": false,
    "ssl_port": "9443",
    "ssl_cert": "",
    "ssl_privkey": ""
  },
  "twitch": {
    "client_id": "",
    "client_secret": ""
  },
  "trovo": {
    "client_id": ""
  }
}

Endpoints

Exposed endpoints are

  • /streams · returns JSON objects of scraped data, formatted as:
    • {
        platform,
        id,
        name,
        avatar,
        live,
        title,
        viewers
      }
      
  • /platforms · returns a JSON object of supported platforms
  • /teams · returns an array of stream teams
  • /src · returns license information and link to source code

Credits

Orginally forked from jdanks.armyd.

About

Cross-streaming-platform API used for Norwegian streamer directory.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published