1
0
Fork 0
Commit Graph

7 Commits

Author SHA1 Message Date
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
Ash Wilson 2e2588175e Merge branch 'pr-14' 2017-10-20 21:03:34 -04:00
Arun Babu Neelicattu 60aa4c8653 Support emoji name prefix/suffix
- add support for prefixes via --prefix/$EMOJI_NAME_PREFIX
- add support for suffixes via --suffix/$EMOJI_NAME_SUFFIX
2017-07-25 01:34:51 +12:00
Stephen Brennan 6f901efc64 Remove obsolete environment variables. 2017-03-21 23:54:04 -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
Ash Wilson e3bdb7824f We need a new crumb for each request. 2015-02-24 21:57:04 -06:00
Ash Wilson 91d1f70d38 Initial work. 2015-02-22 11:29:55 -05:00