egbertbouman / youtube-comment-downloader

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

receiving "Error: bad escape \d at position 7" on all videos #109

Closed andlabs closed 2 years ago

andlabs commented 2 years ago

Python 3.9 or 3.10 from MacPorts on macOS 10.12.6. For any video I try, it starts to download the comments, and then immediately gives up with "Error: bad escape \d at position 7". I don't see any way to get debugging info, so.

I am invoking as

python3 ~/extsrc/youtube-comment-downloader/youtube_comment_downloader/__main__.py --youtubeid ID --output FILE

and the third-party Python dependency modules are also installed from MacPorts.

egbertbouman commented 2 years ago

I'm unable to reproduce the error, but did find a similar issue here.

Perhaps it's due to dateparser and regex not being compatible. If you're running an older version (<1.1.1) of dateparser, you could try and see if updating it fixes the problem.

andlabs commented 2 years ago

Ah yes, I was on 1.1.0 (which is what MacPorts was also on). Right now some dependencies are broken, but I'll try updating later and will report back (assuming a newer version is available that port info isn't showing).

andlabs commented 2 years ago

All right, MacPorts did not actually update dateparser yet, but I tried installing it from pip in a venv and 1.1.1 does indeed work. Thanks!