get-that-video
v1.0.2
Published
A module to get direct URL of media from platforms
Downloads
2
Readme
A module to fetch information and videos from some platforms.
🪛 Supported platforms
- Rumble
If you want to contribute sending an idea or implementing a new platform handler, create a issue or a pull-request
📃 Usage/Documentation
🔧 Setup
Install the package with npm install get-that-video
or yarn add get-that-video
.
All valid packages will do allusion to the platform name, like 'twitter'.
So, let's start making a simple script.
import { twitter } from 'get-that-video';
// If using standard NodeJS
// const { twitter } = require('get-that-video');
async function getTwitterVideo(url) {
// All 'get' returns will be a Object or a Array of Objects
const formats = await twitter.getVideo('Some twitter status URL');
console.log(formats[0].url); // Will return the URL of the first format in the array
}
getTwitterVideo();
// You can easily implement inside any project :).
📎 Valid methods
getVideo | Array of Objects
Will fetch only video formats.
getInfo | Object
Will fetch a complete request, including user information and tweet information.
Properties:
- user: Object
- tweet: Object
rumble
getVideo | Object
Will fetch a complete request, including information and formats.
getVideo | Array of Objects
Will fetch only video formats.
getInfo | Object
Will fetch a complete request, including the title, author and formats information.
Properties:
- title: String
- author: Object
- formats: Array of Objects
getVideo | Array of Objects
Will return complete info, video and audio URLs.
Properties:
- info: Array of Objects
- video: Array of Objects
- audio: String;