grundleborg / slack-advanced-exporter

A tool for exporting additional data from Slack that is missing from the official data export.
MIT License
97 stars 19 forks source link

added cursor and loop to fetch 1000+ users from Slack #31

Open TheStu opened 8 months ago

TheStu commented 8 months ago

I'm exporting quite a large amount of slack data (7k users) and noticed that this only exported the first 1000 email addresses. I've added in a loop and some logic to take advantage of the cursor parameter that Slack provides, to keep making get requests until there is no more cursor.

I built this and tested it on linux with my slack workspace and as far as I can tell it pulled all ~7k emails.