1
0
Fork 0
Commit Graph

75 Commits

Author SHA1 Message Date
Stephen Brennan 8aa6cd1393 Export using cookie + scraping rather than API, to avoid API token. 2017-03-21 23:46:12 -04:00
Ash Wilson d4c26e226a Merge pull request #13 from r0b0ticus/master
Adding a script to export emoji to a given dir from an existing slack team
2017-01-30 13:11:42 -05: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 daf1a3ebab Merge pull request #11 from samstav/samstav/args
improve ux
2016-12-09 04:36:28 -08:00
Sam Stavinoha 8380a341f7 refactor to use argparse and fewer globals 2016-12-08 14:39:20 -08:00
Sam Stavinoha 150980c9b5 make upload.py executable 2016-12-08 13:40:58 -08:00
Sam Stavinoha 88818c048e dont eval input on py2
In python2, `input(p)` is equilvalent to `eval(raw_input(p))`,
but raw_input is not defined in python 3. So let's use raw_input
if it's there, and fall back to `input` otherwise (otherwise
probably just means python3.)

This change fixes the following outcome in python2.x :

$ python upload.py -h
Please enter the team name: helloworld
Traceback (most recent call last):
  File "upload.py", line 15, in <module>
    team_name = input("Please enter the team name: ")
  File "<string>", line 1, in <module>
NameError: name 'helloworld' is not defined
2016-12-08 13:39:44 -08:00
Kyle Varga f61f66169e Merge pull request #9 from vmarkovtsev/master
Improve the script
2016-09-25 17:40:13 -05:00
Vadim Markovtsev 95e7e3df59 Improve the script
1. Add Python 3 (bytes) and 3.5 support (bs4)
2. Allow setting SLACK_* interactively
3. Do not stop uploading in case of errors
4. Fix "already exists" misprint
2016-09-26 00:37:40 +02:00
Kyle Varga 7b69a64308 Merge pull request #8 from kvarga/fix-readme
Fix readme for cookies
2016-08-02 11:27:56 -05:00
Kyle Varga da4a1d3b6d Fix capitalization 2016-08-02 11:24:41 -05:00
Kyle Varga facc4370b5 Change readme since document.cookies doesn't return https cookies 2016-08-02 11:24:05 -05:00
Ash Wilson 03998fc7a4 Merge pull request #7 from kvarga/readme-instructions
Update README with cookie instructions
2016-08-01 08:39:43 -04:00
Ash Wilson c49d621746 Merge pull request #6 from kvarga/check_existing_emojis
Refactoring, Check if emoji already exists, and improved error detection
2016-08-01 08:38:55 -04:00
Kyle Varga 81876fdd31 Update README with cookie instructions 2016-07-31 12:38:39 -05:00
Kyle Varga f36c666970 Refactoring, check if emoji exists before uploading, and improved error handling 2016-07-31 12:26:08 -05:00
Ash Wilson f225861d30 Forgot about the `.env` file. 2015-02-24 22:16:19 -06:00
Ash Wilson 6d3d5c3dcc Flesh out the README. 2015-02-24 22:12:41 -06:00
Ash Wilson d574b713cc Fetch the form to generate a crumb. 2015-02-24 21:57:48 -06:00
Ash Wilson 8caaee1296 emoji_name shouldn't contain the extension. 2015-02-24 21:57:25 -06:00
Ash Wilson e3bdb7824f We need a new crumb for each request. 2015-02-24 21:57:04 -06:00
Ash Wilson 095bc5ec41 Note dependencies. 2015-02-24 21:42:50 -06:00
Ash Wilson 91d1f70d38 Initial work. 2015-02-22 11:29:55 -05:00
Ash Wilson 91b553d0bd Ignore .env. 2015-02-22 11:29:40 -05:00
Ash Wilson 5074975b2d Initial commit 2015-02-22 09:07:37 -05:00