Skip to content

luisgbr1el/cliprxyz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cliprxyz

Fetch infos from a Twitch clip with Clipr.xyz website.

GitHub forks GitHub stars GitHub license

Install (with NPM)

npm i cliprxyz

Usage

const cliprxyz = require("cliprxyz");

cliprxyz.downloadClip("CLIP_URL").then(res => {
    console.log(res)
}).catch(err => {
    console.log(err);
});

The package will shows:

{
  clipName: 'Shows the clip name',
  clipUrl: 'Shows the clip url',
  creatorUsername: 'Shows the creator username',
  creatorUrl: 'Shows the creator profile url',
  creatorPictureUrl: 'Shows the creator profile picture url',
  creatorWasPlaying: 'Shows what the creator was playing',
  clippedOn: 'Shows the date from when the livestream was clipped'
}

Get the clip name

const cliprxyz = require("cliprxyz");

cliprxyz.downloadClip("CLIP_URL").then(res => {
    console.log(res.clipName)
}).catch(err => {
    console.log(err);
});

Get the clip url

const cliprxyz = require("cliprxyz");

cliprxyz.downloadClip("CLIP_URL").then(res => {
    console.log(res.clipUrl)
}).catch(err => {
    console.log(err);
});

Get the creator username

const cliprxyz = require("cliprxyz");

cliprxyz.downloadClip("CLIP_URL").then(res => {
    console.log(res.creatorUsername)
}).catch(err => {
    console.log(err);
});

Get the creator url

const cliprxyz = require("cliprxyz");

cliprxyz.downloadClip("CLIP_URL").then(res => {
    console.log(res.creatorUrl)
}).catch(err => {
    console.log(err);
});

Get the creator profile picture url (300x300)

const cliprxyz = require("cliprxyz");

cliprxyz.downloadClip("CLIP_URL").then(res => {
    console.log(res.creatorPictureUrl)
}).catch(err => {
    console.log(err);
});

Get what the creator was playing

const cliprxyz = require("cliprxyz");

cliprxyz.downloadClip("CLIP_URL").then(res => {
    console.log(res.creatorWasPlaying)
}).catch(err => {
    console.log(err);
});

Get when the livestream was clipped

const cliprxyz = require("cliprxyz");

cliprxyz.downloadClip("CLIP_URL").then(res => {
    console.log(res.clippedOn)
}).catch(err => {
    console.log(err);
});

Author

luisgbr1el