Just in case you want to do something like that.

It uses the output of your GDPR data request which returns your complete posting and commenting history rather than the last 1000 comments that the web interface exposes.

It uses Puppeteer to remotely control a Chrome browser.

Have fun!