https://github.com/valerebron/usetube
search & get datas from youtube no google account needed
https://github.com/valerebron/usetube
crawler typescript video youtube youtube-api
Last synced: about 1 year ago
JSON representation
search & get datas from youtube no google account needed
- Host: GitHub
- URL: https://github.com/valerebron/usetube
- Owner: valerebron
- License: gpl-3.0
- Created: 2020-09-21T15:08:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-06T16:37:29.000Z (about 3 years ago)
- Last Synced: 2024-10-01T15:49:13.258Z (over 1 year ago)
- Topics: crawler, typescript, video, youtube, youtube-api
- Language: TypeScript
- Homepage:
- Size: 479 KB
- Stars: 48
- Watchers: 2
- Forks: 18
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/usetube)
[](https://www.npmjs.com/package/usetube)
### Youtube Crawler
### search & get datas from youtube
### no google account needed
This package is initially dev for the site https://massivemusic.fr/add-tracks/,
It's here for sharing & contribute.
# usage
```js
const usetube = require('usetube')
await usetube.searchVideo('Lorn')
```
# methods
```js
searchVideo(terms)
searchChannel(terms)
getChannelVideos(channel_id)
getPlaylistVideos(playlist_id)
getChannelDesc(channel_id)
getVideoDesc(video_id)
getVideoDate(video_id)
getVideosFromDesc(video_id)
getVideoSubtitles(video_id)
```
# returned datas
```js
video {
id
original_title
title
artist
duration
publishedAt
}
```
```js
channel {
name
channel_id
nb_videos
nb_subscriber
official
channel_avatar_small
channel_avatar_medium
channel_avatar_large
}
```