yt-channel-info
yt-channel-info copied to clipboard
A Node.js module for grabbing channel information without any official API
This is what happens now, every time you'd call getChannelInfo or getChannelVideos
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. Release notes Sourced from word-wrap's releases. 1.2.4 What's Changed Remove default indent by @mohd-akram in jonschlinkert/word-wrap#24 🔒fix: CVE 2023 26115 (2) by @OlafConijn in...
``` const payload = { channelId: channel.id, sortBy: 'newest', channelIdType: 0 }; const response = await channelInfo.getChannelVideos(payload); const moreVideos = await channelInfo.getChannelVideosMore({continuation: response.continuation}) ``` Produces error: ![Screenshot 2023-07-08 at 02...
youtube-grabber.js, line 264~267 ``` channelInfo = { channelId: channelPageResponse.data.responseContext.serviceTrackingParams.find((service) => service.service === 'GOOGLE_HELP').params[0].value, channelName: new RegExp(`${firstVideoTitle.runs[0].text} by (.*?) ${firstPublishTimeText.simpleText}`, 'g').exec(firstVideoTitle.accessibility.accessibilityData.label)[1] } ``` ``` channelName: new RegExp(`${firstVideoTitle.runs[0].text} by (.*?) ${firstPublishTimeText.simpleText}`, 'g').exec...
Not sure why there's an error but it goes as follow LOG [TypeError: undefined is not a function] Code: const payload = { channelId: 'UCXuqSBlHAE6Xw-yeJA0Tunw', // Required channelIdType: 0 }...
This is the error I'm getting:  Exporting everything in the index.d.ts file will fix this problem.
Upcoming videos can have viewers even before premiering. While [parsing](https://github.com/FreeTubeApp/yt-channel-info/blob/ff56f87f68c9e0037350209e01ec86769511a2ce/app/helper.js#L227) the video data, this is not taken into account, causing the `isLive` variable to be set as `true`, and `isUpcoming`...
youtube channel info has problem like this (i did install yt-channel-info@latest) ``` reject(new AxiosError( ^ AxiosError: Request failed with status code 400 at settle (/media/data/worker/juju-video-scraper/node_modules/axios/dist/node/axios.cjs:1855:12) at Unzip.handleStreamEnd (/media/data/worker/juju-video-scraper/node_modules/axios/dist/node/axios.cjs:2712:11) at Unzip.emit...
Hi I recently started to get this error: TypeError: Cannot read properties of undefined (reading 'alerts') at Function.getChannelStats (E:\node\ytc_usa\node_modules\yt-channel-info\app\youtube-grabber.js:494:41) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) E:\node\ytc_usa\node_modules\yt-channel-info\app\youtube-grabber.js:494 if (typeof (channelPageDataResponse.alerts) !== 'undefined') { ^...
We can add tests to verify that a property is still returning a value & prevent yt-channel-info from crashing if there's an error in some YouTube data