1.0.2 • Published 2 years ago

get-that-video v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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;
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago