Comments (2)
I'll answer for the both #5 and #6 at one place ~
Pufetch
is a command line tool which you can not use programatically in your application.
Suppose you are building an electron app to download contents of the playlist and you need to fetch the urls to make your work easier, in that case, you can either manually scrape the urls (that would be similar to re-writing youtube-playlist
), use the YouTube API (a little bit of complicacy as things might get confusing just for doing some simple task), or just require
this module to do the same thing (easy).
~ CASE 1
const ytlist = require('youtube-playlist');
const playlistUrl = 'x';
ytlist(playlistUrl, 'url').then(res => {
console.log(res);
// do something with the data in your app
});
~ CASE 2
$ pufetch --fetch <url>
// somePlaylistContent
In the second case, you can manually copy-paste or export the url, just in case you need to save the urls
(along with their ids and names) for yourself or for any other purpose, but there is no way you can
$ pufetch --fetch <url>
in your application.
This module is an interface through which you can use it the way you want. For example, suppose you are building another app where you only need to find the ids of all the content available in the playlist, you can ~
ytlist(playlistUrl, 'id').then(res => {
console.log(res);
// do something with the ids
});
One more thing, Pufetch
doesn't use this module because it was written way before I felt the need of writing this module.
The main motive behind creating this module was to avoid YouTube API, and also there were no other modules which did the exact thing similar to this one.
Coming to the another part
I don't see anywhere that this library requires a Youtube API key or a client ID, so I want to ask if it require one of those and where to use them?
The module is not dependent upon the YouTube API, so it doesn't require any key or token. If you look into the code, it's all just scrapping the web-page to extract the data. You don't need anything extra to use this module.
If it doesn't require them, then is there a limit for the usage or limit for number of users?
-
Limit for the usage - I'm not aware of the maximum number of requests you can make in a minute.
-
Limit for number of users - There is no limit for that. For example, if 1000s of people run this module at the same time, the requests that will be sent to YouTube will be from the different IP addresses, which is totally fine. Make it millions, and still things will be completely normal.
from youtube-playlist.
Awesome thank you.
from youtube-playlist.
Related Issues (17)
- Be able to get playlist information from a video that is attached to a playlist HOT 4
- It only returns the first 100 of the playlist HOT 1
- Add playlist title HOT 3
- Can't go passed 100
- Some time the playlist isn't loading to data HOT 6
- Sorry man Doesn't seem like it's working anymore HOT 10
- Limit to 100 videos HOT 2
- Limited to One Playlist HOT 5
- Weekly downloads not found HOT 2
- Not getting Playlist song list HOT 4
- can only get 100 first video urls in playlist HOT 6
- No longer works HOT 2
- Installing This Package Is Pruning All My Node Modules That I need
- Get all 3 opts in one call? HOT 2
- Does it require an API key? HOT 1
- stuck on "Cross-Origin Request Blocked" warning HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youtube-playlist.