get-that-video
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

npm NPM GitHub Repo stars GitHub issues

  A module to fetch information and videos from some platforms.

 

🪛 Supported platforms

  • Twitter
  • Rumble
  • Facebook

  If you want to contribute sending an idea or implementing a new platform handler, create a issue or a pull-request

 

📃 Usage/Documentation

Setup
Valid methods

 

🔧 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

twitter

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.

 

facebook

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

 

reddit

getVideo | Array of Objects

Will return complete info, video and audio URLs.

Properties:

  • info: Array of Objects
  • video: Array of Objects
  • audio: String;

Readme

Keywords

none

Package Sidebar

Install

npm i get-that-video

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

40.6 kB

Total Files

28

Last publish

Collaborators

  • z3ox1s