DrKain / scrape-youtube

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

Invalid subscriber count / video count #66

Closed DrKain closed 1 year ago

DrKain commented 1 year ago

For some reason YouTube is returning incorrectly labelled data. The videoCountText contains subscriber count and subscriberCountText contains the channel handle. I don't modify this data so this is what's being returned by YouTube.

  videoCountText: {
    accessibility: { accessibilityData: [Object] },
    simpleText: '21 subscribers'
  },
  subscriptionButton: { subscribed: false },
  subscriberCountText: { simpleText: '@lespetitesmouettes8996' },
DrKain commented 1 year ago

Partial fix in https://github.com/DrKain/scrape-youtube/commit/c2379181fc770aa43d8e211759b31b1161554e1a. Subscriber count is now working as usual, video count is unavailable until YouTube fixes things on their side.