Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luisgbr1el/cliprxyz
Fetch infos from a Twitch clip with Clipr.xyz website.
https://github.com/luisgbr1el/cliprxyz
downloader node node-js npm twitch twitchclips
Last synced: about 2 months ago
JSON representation
Fetch infos from a Twitch clip with Clipr.xyz website.
- Host: GitHub
- URL: https://github.com/luisgbr1el/cliprxyz
- Owner: luisgbr1el
- License: mit
- Created: 2022-01-29T02:26:14.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-03T11:36:04.000Z (over 2 years ago)
- Last Synced: 2024-11-13T16:50:11.700Z (2 months ago)
- Topics: downloader, node, node-js, npm, twitch, twitchclips
- Language: JavaScript
- Homepage: https://npmjs.com/package/cliprxyz
- Size: 1.28 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cliprxyz
Fetch infos from a Twitch clip with [Clipr.xyz](https://clipr.xyz) website.# Install (with NPM)
```javascript
npm i cliprxyz
```# Usage
```javascript
const cliprxyz = require("cliprxyz");cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res)
}).catch(err => {
console.log(err);
});
```The package will shows:
```javascript
{
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
```javascript
const cliprxyz = require("cliprxyz");cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.clipName)
}).catch(err => {
console.log(err);
});
```## Get the clip url
```javascript
const cliprxyz = require("cliprxyz");cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.clipUrl)
}).catch(err => {
console.log(err);
});
```## Get the creator username
```javascript
const cliprxyz = require("cliprxyz");cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.creatorUsername)
}).catch(err => {
console.log(err);
});
```## Get the creator url
```javascript
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)
```javascript
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
```javascript
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
```javascript
const cliprxyz = require("cliprxyz");cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.clippedOn)
}).catch(err => {
console.log(err);
});
```# Author
luisgbr1el