Commit graph

27 commits

Author SHA1 Message Date
Piotr Dec
325f1c4ed1
MR 24 with fixes
see: https://github.com/sebseager/slack-exporter/pull/24
2025-04-28 14:23:51 +02:00
David Fichtmueller
10ae14bb89
Switch date formats to ISO 8601
both for the export folder name and the time stamp of the messages in the channel/conversation file. 

Relevant XKCD: https://xkcd.com/1179/
2023-11-08 12:49:15 +01:00
Maxim Rudenko
06b0609bad fixed bug with UnicodeEncodeError when pull history in text format with output directory 2023-07-11 16:26:31 +03:00
Mike Saffitz
ece6ee1ed0
Retry file downloads on exception up to 10 times, skip already downloaded files.
This addresses common "connection reset by peer" and other potential
connectivity issues on download.

Suggestions for future improvement include configurable numbers of attempts,
sleep intervals between attempts, and use a common file download directory
(e.g. instead of creating a new one for each export).  The latter would allow
more incremental behavior of file downloads.
2023-03-05 09:56:55 -08:00
Anders
6c5f908c8a
Fixed OSError on invalid filename
Added `pathvalidate` as a requirement (https://pypi.org/project/pathvalidate/).
2023-01-05 23:53:54 +01:00
Seb Seager
fd92a9d998
Check a.o 2022-09-23 03:51:06 -04:00
Silvio Tomatis
dfb7a254c0
Also download all files 2022-09-06 12:29:39 +02:00
Silvio Tomatis
1cff785a4f
Fix an unused import and a missing exception alias 2022-09-06 12:25:34 +02:00
Iago Lopez Galeiras
5010913a40 Fix missing parameter rename
In 27d1053a27 the signature of
save_channel() was updated and the users variable was removed from the
main function but one save_channel() call was still using it.

Fix that by calling save_channel() with user_list in the missing
instance.
2022-07-13 10:07:09 +02:00
Jay Caines-Gooby
62deb71a8d
Output valid JSON with the --json option
Don't just print the data object, `json.dump` it
2022-03-09 17:59:46 +00:00
Seb Seager
27d1053a27 Updated save_channel signature 2022-02-15 20:55:30 -05:00
Seb Seager
bbb34418fc Pass channel_list to save_replies 2022-02-15 20:44:21 -05:00
Seb Seager
b26f4d454a Changed sleep mechanics and lang from PR 2022-01-28 11:09:49 -05:00
Daniel Hnyk
594cf0f362 blacking 2022-01-20 09:12:26 +01:00
Daniel Hnyk
6c15fa1294 add throthling handling 2022-01-20 09:10:50 +01:00
Seb Seager
ebbe56ea75 Minor CLI modifications 2022-01-07 16:16:15 -06:00
Seb Seager
5f7e637083 Strike global channel id var 2022-01-07 15:03:35 -06:00
Seb Seager
029d3bd4aa Need to look in user["profile"] for real_name
(thanks, @kvdb)
2022-01-07 14:57:40 -06:00
Seb Seager
9dde67c8c0 Formatting + made oldest/latest param safer 2022-01-07 14:36:32 -06:00
mcdamo
eaf59320e9 Add arguments to restrict to Channel and between timestamps
- Add Optional CHANNEL_ID env
2021-11-30 17:58:51 +11:00
Seb Seager
36e9911dfc Adopted new slack api auth 2021-11-18 15:49:15 -05:00
Seb Seager
4b7fea7ec1 Fixed formatting 2021-11-18 13:51:48 -05:00
Seb Seager
b40556cec2 .env optional for standalone exporter 2021-01-05 18:07:45 -06:00
Seb Seager
a6ea7be6df Use short year for output directory 2021-01-05 14:09:29 -06:00
Seb Seager
de688a3cce Fix for tombstone or hidden_by_limit files 2021-01-05 14:01:24 -06:00
Seb Seager
fa955d37df Fix for users that don't have a real_name or tz 2021-01-05 13:41:21 -06:00
Seb Seager
8c4550f307 Added exporter.py and documentation 2020-12-29 16:37:57 -06:00