I'm using the following code to extract videos info (without downloading):
import youtube_dl
with youtube_dl.YoutubeDL({}) as ydl:
result = ydl.extract_info(
'https://www.youtube.com/channel/UCIG1k8umaCIIrujZPzZPIMA',
download=False
)
The above code is working for a small channel (100 videos) but for a huge channel (1000 videos) it shows DownloadError: ERROR: Unable to download webpage: HTTP Error 429: Too Many Requests after 200 videos.
I think it should wait a while every 100 videos for example.
How to solve it?