A module to fetch information and videos from some platforms.
- Rumble
If you want to contribute sending an idea or implementing a new platform handler, create a issue or a pull-request
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 :).
Will fetch only video formats.
Will fetch a complete request, including user information and tweet information.
Properties:
- user: Object
- tweet: Object
Will fetch a complete request, including information and formats.
Will fetch only video formats.
Will fetch a complete request, including the title, author and formats information.
Properties:
- title: String
- author: Object
- formats: Array of Objects
Will return complete info, video and audio URLs.
Properties:
- info: Array of Objects
- video: Array of Objects
- audio: String;