Created
January 6, 2012 18:59
-
-
Save Jaliborc/1571919 to your computer and use it in GitHub Desktop.
This is a simple script that will upload your zipfile to CurseForge. Also works on WoWAce.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
headers = { | |
'User-Agent': 'CurseForge Uploader Script/1.0', | |
'X-API-Key': YOUR_KEY | |
} | |
files = {'file': ('MyFile.zip', open('MyFile.zip', 'r'))} | |
data = { | |
'name': 'Version Banana', | |
'game_versions': '181', | |
'file_type': 'a', | |
'change_log': 'This is a changelog', | |
'change_markup_type': 'creole', | |
'known_caveats': '', | |
'caveats_markup_type': 'plain', | |
} | |
r = requests.post('http://wow.curseforge.com/addons/YOUR_PROJECT/upload-file.json', data = data, headers = headers, files = files) | |
print(r.content) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment