egbertbouman / youtube-comment-downloader

Simple script for downloading Youtube comments without using the Youtube API
MIT License
914 stars 227 forks source link

Beginner tip #94

Closed qkum closed 2 years ago

qkum commented 2 years ago

Beginner tip

Target URL if you copy video address: https://www.youtube.com/watch?v=ienmgdpgqSc

Same Video but from the browser: https://www.youtube.com/watch?v=ienmgdpgqSc&ab_channel=ChinainFocus-NTD

The Youtube ID is this part: ienmgdpgqSc

Aka. remove these parts: (the 2d one is another "trick" they sometimes throw into the URL) &ab_ and gb_

elibroftw commented 2 years ago

or you could request the downloader to parse the id from a link. https://stackoverflow.com/questions/4356538/how-can-i-extract-video-id-from-youtubes-link-in-python/54383711#54383711

egbertbouman commented 2 years ago

The newest version as a --url option. You may has to put the URL between quotes for certain URLs.