CodeDotJS / YouTube-Playlist-Extend

:snowflake: Automate task to fetch YouTube playlist content without any limitation.
MIT License
5 stars 0 forks source link

fix youtube playlist content limitation - hacktoberfest #1

Open CodeDotJS opened 4 years ago

CodeDotJS commented 4 years ago

Issue

Level - Easy Skills required - NodeJS

PRs can be sent in 3 parts

Issue Details

Fetching contents from the YouTube Playlist is easy with youtube-playlist moudle, but the API has its own limitations. Currently, we can only fetch >=100 videos using this module. But there are playlists which have more than 100 videos, and this is the point where the API becomes less handy.

On an initial load of the page, YouTube gives us 100 videos. So we need to scroll down in order to scrap more content which isn't possible to do with cheerio.

What you can do?

1 - You can use a headless browser to load the further page.

2 - Scrap the names, URL, and IDs of videos and store them in an array.

NOTE

Happy Coding!

Beastskyler commented 4 years ago

Has there been any progress on this?

CodeDotJS commented 4 years ago

Been a little busy, will start working on it from tomorrow. Might take some time, but will finally fix it.

Beastskyler commented 4 years ago

Thank you so much for actually responding, I have been doing a lot of stuff with this but the limit was the only issue I could find. I am new to coding in general so this helped me out so much and saved me so much time. I was thinking of doing hours and hours of research to make my own but since I am so new, it probably wouldn't work. Again thank you for this.

CodeDotJS commented 4 years ago

Do you want to work on it? Let me know. I'll be happy to guide you.

Beastskyler commented 4 years ago

I would love to but I feel like I am too much of a beginner to.

Beastskyler commented 4 years ago

How is it coming along?

CodeDotJS commented 4 years ago

@Beastskyler, apologies. I'm finishing my silly university assignments. I kept procrastinating, and now the deadline's in a few days.

Beastskyler commented 4 years ago

It's all good, university is a lot more important.

Beastskyler commented 4 years ago

Any new updates on this?

Beastskyler commented 4 years ago

Any luck?

CodeDotJS commented 4 years ago

@Beastskyler Implementation done with the help of puppeteer would work fine for you?

Beastskyler commented 4 years ago

Puppeteer would be perfect.