1
0
Fork 0
Commit Graph

6 Commits

Author SHA1 Message Date
Tyrol 12a3bd30b3 Mark idna-ssl as a requirement (resolves #37) 2019-11-24 22:17:45 -06:00
David Lord 2d4e355849 Initial implementation of aiohttp export
Makes the export script require Python 3.6.
(async/await were added in 3.5, so maybe there?)

I'll need to tidy it up a bit, but this is v1 of functionality.

Adds -r/--concurrent-requests for throttling. Defaults to 200.
(configured in .env as CONCURRENT_REQUESTS)

Caveats:
- Adds an aiohttp dependency.
- Stops using upload._session, effectively duplicating the
functionality to get access to aiohttp.ClientSession.
- Adds logging to record the files downloaded. Previously silent.

I've also noticed a bug in filename parsing where a bunch of files all
named `apple.png` are created. This script parses the URL to retrieve
the filename, which exposes this duplication. My version does more
parsing in the HTML to detect the :emoji_name: as used by Slack clients.
Currently I'm not addressing this.
2017-10-25 14:20:28 +10:00
Stephen Brennan 0ab95cdfe1 Require lxml, no more slacker. 2017-03-21 23:48:56 -04:00
David Michael 17f52c1c03 Adding a script to export emoji to a given dir from an existing slack team. 2017-01-30 11:51:25 -06:00
Vadim Markovtsev 95e7e3df59 Improve the script
1. Add Python 3 (bytes) and 3.5 support (bs4)
2. Allow setting SLACK_* interactively
3. Do not stop uploading in case of errors
4. Fix "already exists" misprint
2016-09-26 00:37:40 +02:00
Ash Wilson 095bc5ec41 Note dependencies. 2015-02-24 21:42:50 -06:00