Code Monkey home page Code Monkey logo

slackmojis's Introduction

Slackmojis Downloader

A lazy way to sequentially parse & download every emoji from https://slackmojis.com/

Run

npm i
npm start

.env

# number of images to download concurrently
CONCURRENCY=5

# Starting page index
PAGE_INDEX=0 

slackmojis's People

Contributors

adamgall avatar dependabot[bot] avatar tacyarg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

slackmojis's Issues

Add support for Slackmojis API pagination

Hi folks, Slackmojis creator here.

As of yesterday the Slackmojis API endpoint is now paginated. It turns out returning 40k objects in one good might not have been a great idea ๐Ÿ˜ฌ.

https://slackmojis.com/emojis.json?page=0 now returns the first 500 emojis. Keep incrementing the page number until you get back and empty array response, meaning you've hit the end. There are currently ~40 pages.

Sorry about springing this on you, I should have given folks more of a heads up.

Cheers.

Switch to using the Slackmojis API

Greetings!
Slackmojis creator here. I came across your project and was super excited to see someone had made a downloader package and published it for everyone to use. Thanks for making this.

I noticed you were downloading the homepage and extracting the emojis via CSS selector. There is in fact an API that would make your code a lot more stable, it is available here: https://slackmojis.com/emojis.json

It is also worth noting that as of April of this year the home page only shows up to 50 emojis per category, thus scraping this home page wont yield all the emojis. So many more great ones left to be discovered!

Happy to help in any way I can.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.