Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cookie support #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,272 changes: 1,272 additions & 0 deletions 2024-07-03

Large diffs are not rendered by default.

2,254 changes: 1,219 additions & 1,035 deletions README.md

Large diffs are not rendered by default.

Binary file added emoji/451.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/a-scourge-on-braintree.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/a_good_use_of_fifty_thousand_wow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified emoji/acorn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/alihong.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/are-we-the-baddies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/basic_search_performance.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/believe-it.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/blackcoffee.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/blackflag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/bossnass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/capy-coffee.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/capycoffee.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/cereal-spit-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed emoji/clam_comecheckthisshitout.png
Binary file not shown.
Binary file added emoji/coffee-carafe.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/coffee-seal.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/coffee-siphon.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/coffeebatcat.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/coffeebeans.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/coffeebeans2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/coffeebear2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/coffeecat.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/coffeecatspin.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/coffeefriends.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added emoji/coffeegoat.gif
Binary file added emoji/coffeegood.gif
Binary file added emoji/coffeegood2.gif
Binary file added emoji/coffeepanda.gif
Binary file added emoji/coffeepig.gif
Binary file added emoji/coffeespin.gif
Binary file added emoji/coffeespin2.gif
Binary file added emoji/coffeespin3.gif
Binary file added emoji/coffeespintoomuch.gif
Binary file added emoji/coffeetime.gif
Binary file added emoji/coolyori_no.png
Binary file added emoji/coolyori_yes.png
Binary file added emoji/corn-hot.png
Binary file added emoji/crying-over-stale-coffee.gif
Binary file added emoji/dan_dot_png.png
Binary file added emoji/deal-with-ship-it.gif
Binary file added emoji/dootskeleton.png
Binary file added emoji/dr-baby-wario.png
Binary file added emoji/espresso.gif
Binary file added emoji/eyebal_marqueee_turbo.gif
Binary file removed emoji/f.png
Diff not rendered.
Binary file added emoji/fallguy.png
Binary file added emoji/goggin_on_fire.gif
Binary file modified emoji/gomaroons.png
Binary file added emoji/handiswhat.png
Binary file added emoji/hotcoffee.gif
Binary file added emoji/how-much-could-it-possibly-be.png
Binary file added emoji/hydrant.png
Binary file added emoji/i-had-no-idea.png
Binary file added emoji/icantbeleiveyoucantexplainthat.png
Binary file added emoji/icantbelieveimlosingtoarug.png
Binary file added emoji/iggykoopa.png
Binary file modified emoji/im-finished.png
Binary file added emoji/jarscream.jpg
Binary file added emoji/jellenberger_on_fire.gif
Binary file modified emoji/kekloslovakia.png
Binary file added emoji/krav_maga_workout_with_dan.png
Binary file added emoji/larry-david-unsure.gif
Binary file added emoji/larrykoopa.png
Binary file added emoji/leo-pointing-meme.png
Binary file added emoji/lotte_giants.png
Binary file added emoji/lotte_giants_2.png
Binary file added emoji/meesalikedis.png
Binary file added emoji/meowcoffee.png
Binary file added emoji/minminkirby.png
Binary file added emoji/mrcoffee.gif
Binary file added emoji/mugatu.png
Binary file added emoji/mute_intensifies.gif
Binary file added emoji/nadja_schmidle_angbow.gif
Binary file added emoji/nadja_schmidle_angel2.gif
Binary file added emoji/nadja_schmidle_angel3.gif
Binary file added emoji/nadja_schmidle_angel4.gif
Binary file added emoji/nadja_schmidle_angel5.gif
Binary file added emoji/nadja_schmidle_angelbird.gif
Binary file added emoji/nadja_schmidle_angelkiss.gif
Binary file added emoji/nadja_schmidle_ball.gif
Binary file added emoji/nadja_schmidle_bear.gif
Binary file added emoji/nadja_schmidle_bflyrs.gif
Binary file added emoji/nadja_schmidle_bird.gif
Binary file added emoji/nadja_schmidle_bird2.gif
Binary file added emoji/nadja_schmidle_bird3.gif
Binary file added emoji/nadja_schmidle_blue_thick_line.gif
Binary file added emoji/nadja_schmidle_books.gif
Binary file added emoji/nadja_schmidle_bottle-mail.gif
Binary file added emoji/nadja_schmidle_brokenheart.gif
Binary file added emoji/nadja_schmidle_butterfly.gif
Binary file added emoji/nadja_schmidle_butterfly2.gif
Binary file added emoji/nadja_schmidle_butterfly3.gif
Binary file added emoji/nadja_schmidle_candle2.gif
Binary file added emoji/nadja_schmidle_candle3.gif
Binary file added emoji/nadja_schmidle_candle4.gif
Binary file added emoji/nadja_schmidle_candle5.gif
Binary file added emoji/nadja_schmidle_candle6.gif
Binary file added emoji/nadja_schmidle_catmail.gif
Binary file added emoji/nadja_schmidle_cloud.gif
Binary file added emoji/nadja_schmidle_cross.gif
Binary file added emoji/nadja_schmidle_dog-run.gif
Binary file added emoji/nadja_schmidle_dot.gif
Binary file added emoji/nadja_schmidle_dove.gif
Binary file added emoji/nadja_schmidle_dove2.gif
Binary file added emoji/nadja_schmidle_dove3.gif
Binary file added emoji/nadja_schmidle_dove4.gif
Binary file added emoji/nadja_schmidle_dove5.gif
Binary file added emoji/nadja_schmidle_eye.gif
Binary file added emoji/nadja_schmidle_eyes.gif
Binary file added emoji/nadja_schmidle_fairy.gif
Binary file added emoji/nadja_schmidle_fairy2.gif
Binary file added emoji/nadja_schmidle_fairy3.gif
Binary file added emoji/nadja_schmidle_fist.gif
Binary file added emoji/nadja_schmidle_flyingangel.gif
Binary file added emoji/nadja_schmidle_forest.jpg
Binary file added emoji/nadja_schmidle_frog.gif
Binary file added emoji/nadja_schmidle_globe.gif
Binary file added emoji/nadja_schmidle_grwrose.gif
Binary file added emoji/nadja_schmidle_heart2.gif
Binary file added emoji/nadja_schmidle_heart3.gif
Binary file added emoji/nadja_schmidle_kerze.gif
Binary file added emoji/nadja_schmidle_lava.gif
Binary file added emoji/nadja_schmidle_line.gif
Binary file added emoji/nadja_schmidle_line3.jpg
Binary file added emoji/nadja_schmidle_line4.gif
Binary file added emoji/nadja_schmidle_love.gif
Binary file added emoji/nadja_schmidle_love2.gif
Binary file added emoji/nadja_schmidle_mailbox.gif
Binary file added emoji/nadja_schmidle_mailicon.gif
Binary file added emoji/nadja_schmidle_mailwing.gif
Binary file added emoji/nadja_schmidle_memories.jpg
Binary file added emoji/nadja_schmidle_moose.gif
Binary file added emoji/nadja_schmidle_movingfairy.gif
Binary file added emoji/nadja_schmidle_new.gif
Binary file added emoji/nadja_schmidle_note.gif
Binary file added emoji/nadja_schmidle_openrose.gif
Binary file added emoji/nadja_schmidle_pc.gif
Binary file added emoji/nadja_schmidle_rainbow-stripe.jpg
Binary file added emoji/nadja_schmidle_redrose.jpg
Binary file added emoji/nadja_schmidle_rose.gif
Binary file added emoji/nadja_schmidle_rose2.gif
Binary file added emoji/nadja_schmidle_roseline.gif
Binary file added emoji/nadja_schmidle_star1.gif
Binary file added emoji/nadja_schmidle_star2.gif
Binary file added emoji/nadja_schmidle_star3.gif
Binary file added emoji/nadja_schmidle_sun.gif
Binary file added emoji/nadja_schmidle_thankyou.gif
Binary file added emoji/nadja_schmidle_tree.gif
Binary file added emoji/nadja_schmidle_underconstruction.gif
Binary file added emoji/nadja_schmidle_vase.gif
Binary file added emoji/nadja_schmidle_winepour.gif
Binary file added emoji/nadja_schmidle_writepg.gif
Binary file added emoji/nadja_schmidle_yellowrose.gif
Binary file added emoji/nadja_schmidle_yellowrose1.gif
Binary file added emoji/nod_back.gif
Binary file added emoji/nodata.png
Binary file added emoji/nodg_back.gif
Binary file added emoji/nodg_bloody_nose.gif
Binary file modified emoji/ocourse.png
Binary file added emoji/oh-yeah-its-all-coming-together.png
Binary file added emoji/ohhellyeah.png
Binary file added emoji/pblesi_on_fire.gif
Binary file modified emoji/perf.png
Binary file added emoji/pointing-rick-dalton.png
Binary file added emoji/pushwarren.png
Binary file added emoji/ramenserverfalcon.png
Binary file removed emoji/sadcyclopswithmustache.png
Diff not rendered.
Binary file added emoji/sayori_no.png
Binary file added emoji/sayori_yes.png
Binary file added emoji/shipit-intensifies.gif
Binary file modified emoji/shirk_o_clock.png
Binary file added emoji/sick_intensifies.gif
Binary file added emoji/spongebob-hmm-1.png
Binary file added emoji/spongebob-hmm-2.png
Binary file added emoji/spongebob-hmm-3.png
Binary file added emoji/spongebob-hmm-4.png
Binary file added emoji/spongebob-hmm-5.png
Binary file added emoji/spongebob-hmm-6.png
Binary file added emoji/spongebob-hmm-7-wide.png
Binary file added emoji/spongebob-hmm-7-zoom.png
Binary file added emoji/spongebob-reading.gif
Binary file added emoji/stop-making-sense.png
Binary file added emoji/sup.png
Binary file added emoji/thats-where-youre-wrong-eggo.png
Binary file added emoji/thatsgoodramen1.gif
Binary file added emoji/thatsgoodramen2.gif
Binary file added emoji/thatsweirdintensifies.gif
Binary file added emoji/the-doctor-is-in.png
Binary file added emoji/tired_squidward.png
Binary file added emoji/turbo_yolo.gif
Binary file added emoji/turbo_yolo_spin_move.gif
Binary file added emoji/turbonod_back.gif
Binary file added emoji/undernoobligationtomakegood.png
Binary file added emoji/vpn_on_fire.gif
Binary file removed emoji/we-got-a-pro-over-here.jpg
Diff not rendered.
Binary file added emoji/wellyesbutactuallyno.png
Binary file added emoji/wellyesbutactuallyno2.png
Binary file added emoji/wired_squidward.png
Binary file added emoji/yolo_blood.gif
Binary file added emoji/yolo_intensifies.gif
Binary file added emoji/yolo_sweat.gif
Binary file added emoji/youcantexplainthat.png
12 changes: 7 additions & 5 deletions generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@
const emojme = require('emojme');
const fs = require('fs');
const exec = require('child_process').execSync;

try {
let subdomain = process.argv[3];
let token = process.argv[4];
let auth = JSON.parse(process.argv[3]);
let subdomain = auth.domain;
let token = auth.token;
let cookie = auth.cookie;
let options = {
save: process.argv[2],
output: true
};

return emojme.download(subdomain, token, options).then(results => {
return emojme.download(subdomain, token, cookie, options).then(results => {
if (!results || !results[subdomain] || !results[subdomain].saveResults) {
throw new Error(`unable to retrieve results for ${subdomain}`);
}
Expand All @@ -29,5 +31,5 @@ try {
});
} catch(err) {
console.log(err);
throw new Error('Usage: node generate.js USER SUBDOMAIN TOKEN');
throw new Error('Usage: node generate.js USER AUTH-JSON');
}
6 changes: 3 additions & 3 deletions generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
. ~/.nvm/nvm.sh
date=`date +%Y-%m-%d`

if [ "$#" -eq 3 ]; then
if [ "$#" -eq 4 ]; then
if [ ! -d "emojme" ]; then
git clone [email protected]:jackellenberger/emojme.git
else
Expand All @@ -12,12 +12,12 @@ if [ "$#" -eq 3 ]; then
cd emojme \
&& nvm use 10 || nvm install 10 \
&& npm install \
&& node emojme.js download --save "$1" --subdomain $2 --token $3
&& node emojme.js download --save "$1" --subdomain $2 --token "$3" --cookie "$4"

cd ..
cp -r emojme/build/$2/"$1"/* ./emoji
ls emoji > $date
sh update_readme.sh
else
echo 'Usage: generate.sh USER SUBDOMAIN TOKEN'
echo "Usage: generate.sh USER SUBDOMAIN TOKEN COOKIE"
fi
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"node": ">=10.0.0"
},
"dependencies": {
"emojme": "^1.6.2"
"emojme": "^2.0.1"
}
}