There are many APIs available for downloading LinkedIn Sales Navigator data, but I couldn't find any for downloading archived messages.
This script is a "simple" scraper that will retrieve all messages and store them in a CSV file. You can use this with WebdriverIO.
- Create a new WDIO project.
- Add the script.
- Update the config with this configuration.
- Start WebdriverIO, but run it in watch mode using
npm run wdio -- --watch
.