-1

I tried to extract all youtube videoid from a channel. It was working fine till last week, suddenly its not working. In fact its not throwing any errors. Kindly help! Actually i tried to get the list of link. But Its showing empty link.

#scrape all the videos links
import scrapetube
link=[]
videos = scrapetube.get_channel("UCPXnayBvF7ynbG_I3VOTgIg")

for video in videos:
    str1="https://www.youtube.com/watch?v="+str(video['videoId'])
    link.append(str1)

Input to access list:

link[:]

output obtained was:

[]

1 Answers1

2

It was a bug in a consent line in youtube that is fixed in version 2.3.1 of scrapetube. I suggest you uninstall any version <= 2.3.0 and install the latest one. That should do it.