{"repo":"DrKain/scrape-youtube","free":true,"listed":false,"github":"https://github.com/DrKain/scrape-youtube","clone":"git clone https://github.com/DrKain/scrape-youtube.git","description":"A lightning fast package to scrape YouTube search results","language":"JavaScript","stars":127,"topics":["youtube","scrape","npm","search","playlist","video","movie","nodejs","discord","bot"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"A lightning fast package to scrape YouTube search results. This was made for Discord Bots. Install Example Custom Types Supported types are: video , live , movie , channel , playlist and any . These types use the sp parameter. If you pass your own sp value it will overwrite the types. See the \"custom filters\" section for more information. Examples Please see the examples directory for examples on what data you will receive from each search. Your IDE should have autocompletion that works with the interface files, but these are here just in case. If you want help using this in Discord Bot, please visit the wiki page for TS/JS examples. Playlists Please note that the \"videos\" listed in playlist responses will only contain 1-2 items. This is what is available from the search results. If you wish to load an entire playlist, consider using ytdl-core. Custom Filters You can pass { sp: 'ABC' } as the second parameter to use custom filters like upload date, duration, features ect. You will need to fetch the SP parameter yourself from youtube. Please see this image for an example. Request Options You can pass { request: { } } as the second parameter to use a proxy, custom headers, agents ect. See http.request for more information. For example, using Cookie: 'PREF=f2=8000000' will enable restricted mode to filter out videos with bad language or adult themes. Additionally, 'Accept-Language': 'de' will load YouTube in German, sometimes resulting in different titles and content responses. ","default_branch":null,"files":null,"tree":[],"storefront":"/r/DrKain","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DrKain/scrape-youtube/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}