DrKain / scrape-youtube

A lightning fast package to scrape YouTube search results
MIT License
112 stars 30 forks source link

How to pass maxResult with TS? #69

Closed pawan-poudel-github closed 1 year ago

pawan-poudel-github commented 1 year ago

How can I pass the number of videos length count in youtube.search()?

DrKain commented 1 year ago

The search function will return a maximum of 20 results, currently there is no way to load additional pages for more results. You can narrow the results down by specifying a type.
If you want to limit the results to less than 20 you can simply use slice(0, n)

DrKain commented 1 year ago

If you have any further questions you're welcome to contact me on Discord, I'll gladly help you with any problems or questions. I'll close this issue for now, seeing as it's a question not a bug report.
Discord ID: drkain