Fetch infos from a Twitch clip with Clipr.xyz website.
npm i cliprxyz
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'
}
const cliprxyz = require("cliprxyz");
cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.clipName)
}).catch(err => {
console.log(err);
});
const cliprxyz = require("cliprxyz");
cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.clipUrl)
}).catch(err => {
console.log(err);
});
const cliprxyz = require("cliprxyz");
cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.creatorUsername)
}).catch(err => {
console.log(err);
});
const cliprxyz = require("cliprxyz");
cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.creatorUrl)
}).catch(err => {
console.log(err);
});
const cliprxyz = require("cliprxyz");
cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.creatorPictureUrl)
}).catch(err => {
console.log(err);
});
const cliprxyz = require("cliprxyz");
cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.creatorWasPlaying)
}).catch(err => {
console.log(err);
});
const cliprxyz = require("cliprxyz");
cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.clippedOn)
}).catch(err => {
console.log(err);
});