Comments (8)
Just in case it's helpful in any way (e.g. for testing purposes), here's a JavaScript snippet that I've been using to fetch the list of custom emojis on the client side, via dev tools:
await (async (teamId) => {
const {token} = JSON.parse(localStorage.localConfig_v2).teams[teamId];
const query = (marker) =>
fetch(`https://edgeapi.slack.com/cache/${teamId}/emojis/list`, {
body: JSON.stringify({ count: 100, token, marker }),
method: "POST",
credentials: "include"
}).then((r) => r.json());
const results = [];
let marker;
do {
const data = await query(marker);
results.push(...data.results.map((d) => [d.name, d.value]));
marker = data.next_marker;
} while (marker);
return Object.fromEntries(results);
})('THE_TEAM_ID')
Note that the results may not only contain image URLs but also aliases.
from slackdump.
No worries! This is open source after all. I appreciate all of your hard work--as you can get to it. Thank you!
Yes, I did see it more as a separate mode since it is somewhat orthogonal to channel content--similar to a user list. In terms of output, yes, that is roughly what I envisioned, where GIF would include animated support, if applicable.
Thanks for asking
from slackdump.
@craigrandall finally! Merged the emoji dump to master, it will be available in the v2.2.0, which I release soon. Thank you for the wait :)
Need to document it, and add to the UI, for now it can be invoked like this:
./slackdump -emoji -base my_emojis.zip
-base my_emoji.zip
sets the output to my_emoji.zip
. It can also be a directory, i.e. -base some_dir
-emoji
sets the emoji download mode.
You can let me know your OS, and I can build a binary for you, if you wish to try it out before it's released?
from slackdump.
Hey @craigrandall, version 2.2.0 has the -emoji
flag built in that allows to download the emojis, see this documentation section.
Thank you for your patience!
from slackdump.
@craigrandall sorry, it's taking me obscene long time to get to this.
Let me ask - do you see it as a separate mode, i.e. slackdump -emoji
and it would dump the json definiton of those emojis along with png/gif files for them?
from slackdump.
Edge api are dodgy to deal with as there's no documentation, I'll put this snippet to a good use, thank you!
from slackdump.
from slackdump.
from slackdump.
Related Issues (20)
- Date range parameters to only download data within a certain range HOT 3
- Retry on 408 timeout errors
- incremental backup - update of existing dumps (export/std) HOT 7
- Fetching only saved items HOT 2
- Member lists missing (fixed in 2.4.0), implement in 3.0.0 HOT 11
- Export to slack-export-viewer is not opening HOT 15
- slackdump showing gtk module not loaded error HOT 1
- Check if disabled users are not making it to the message's "replies" field
- Add support for exporting canvases and attachments HOT 3
- Variation in capitalization of "type" HOT 8
- When using export-type mattermost program downloads files anyway HOT 2
- Is possible to dump Emojis with information about who created? HOT 1
- How to export direct messages? HOT 1
- Attachments downloaded in standard export although no -download flag HOT 4
- Selective attachments download (i.e. only private/only public) HOT 1
- Callback error when exporting conversation HOT 11
- Add an homebrew installation method HOT 1
- Slack reports browser is not supported during login HOT 1
- Crashes on Linux and Windows HOT 2
- Incremental backup script is empty HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slackdump.