Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Latest commit

 

History

History
29 lines (18 loc) · 1.32 KB

README.md

File metadata and controls

29 lines (18 loc) · 1.32 KB

Slackmoji Swarm

The best parts of this project have been merged into slack-emojinator; please consider using that instead.

Mass downloader of Slack emoji.

Features

  • Scrape a pre-retrieved /customize/emoji page to get names and URLs.
  • Mass download them to a folder (with connection reuse! now proven by Performance Tests™️).

Usage

  • Visit https://<subdomain>.slack.com/customize/emoji in your browser and save the HTML. This saves the script from authenticating.

  • Update in_file in config.py to point to the saved HTML.

  • Run scrape.py to see beautiful asynchronous download.

  • If you want to upload to another Slack team, this output is compatible with slack-emojinator.

Profiling

It's got a lot faster over time and now uses aiohttp for asynchronous HTTP connections.

The "sequential" download is the naive solution with requests, and the connection reuse is that plus SSL connection reuse.

Profiling results

FAQ

Is this recent?: The format parsed was defined 13-Oct-2017. Slack may have changed their /customize/emoji page since then.

What about rate-limiting?: Haven't run into any, even repeatedly downloading 900 emoji.