egbertbouman / youtube-comment-downloader

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

add direct way to link a reply to its parent comment in the output so we can distinguish if its a reply or main comment #148

Closed heyeanne34 closed 3 months ago

heyeanne34 commented 3 months ago

is thre a command that has an identifier for these?

egbertbouman commented 3 months ago

There's a reply boolean in the comment output: comment['reply'] will be True/False depending on whether or not it's a reply to another comment. If you want the comment ID of the parent, you can just do something like comment['cid'].split('.')[0].