egbertbouman / youtube-comment-downloader

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

Ability to select language #82

Closed pavo976 closed 3 years ago

pavo976 commented 3 years ago

Hello.

Is it planned to add the possibility of selecting YouTube's messages? For example, when using VPN, comments are displayed with the language of the country of origin of requests. Or living in a country with a language other than preferred (multi-language countries).

": "Urtg234QERRTwtWE7U-POUJ87",
  "text": "...",
  "time": "πριν από 10 μήνες (τροποποιήθηκε)", <- 10 months ago (modified)
  "author": "...",
  "channel": "U56wget...",
  "votes": "369",
  "photo": "https://yt3.g...",
  "heart": true
}
{
  "cid": "U67hgWEREgr768-mgjaer45",
  "text": "...",
  "time": "πριν από 6 ώρες", <- 6 hours ago
  "author": "...",
  "channel": "U56wget...",
  "votes": "0",
  "photo": "https://yt3.g...",
  "heart": false
}
egbertbouman commented 3 years ago

Thanks for the suggestion, that sounds like a useful option. It turned out to be easy to do, so I just implemented this. From now on, you can specify the language by adding --language en (for english). By default, Youtube determines the language by looking at your IP.