Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kotborealis/sync-lc-providers
:movie_camera: Node.JS tool to fetch data from Youtube, Soundcloud, Vimeo and etc.
https://github.com/kotborealis/sync-lc-providers
fetch js nodejs soundcloud twitch vimeo youtube
Last synced: 2 days ago
JSON representation
:movie_camera: Node.JS tool to fetch data from Youtube, Soundcloud, Vimeo and etc.
- Host: GitHub
- URL: https://github.com/kotborealis/sync-lc-providers
- Owner: kotborealis
- Created: 2017-07-02T11:45:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T11:52:20.000Z (about 2 years ago)
- Last Synced: 2024-04-14T08:32:40.516Z (8 months ago)
- Topics: fetch, js, nodejs, soundcloud, twitch, vimeo, youtube
- Language: JavaScript
- Homepage:
- Size: 1.96 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sync-lc-providers
Node.JS library to fetch info from Youtube, Soundcloud and etc.## Supported providers
* Coub
* Soundcloud
* Vimeo
* Twitch Streams
* Youtube (including playlists)
* Video/audio files## !
Right now, it always downloads a bunch of ffmpeg binaries, so the installation might look stuck for some time.## Usage
```js
const providers = require('sync-lc-providers');// Get single video info
providers.youtube.info('https://www.youtube.com/watch?v=iNCRfh6dx60').then(info => ...).catch(error => ...);
/**
Returns promise with video info:
{
duration: 195,
title: 'ChunnHEbyou',
thumbnail: 'https://i.ytimg.com/vi/iNCRfh6dx60/default.jpg',
url: 'https://www.youtube.com/watch?v=iNCRfh6dx60',
type: 'youtube',
id: 'iNCRfh6dx60',
disableTiming: false
}
If there's any errors, rejects the promise.
**/// Get all videos from playlist
providers.youtubeList.entities('https://www.youtube.com/playlist?list=PLN1mjQ-i1XV5zC72G4NyaFANSeVAIL43U').then(entities => ...).catch(error => ...);
/**
Returns promise with array of entities in the same format as .info
**/```