Skip to content

Instantly share code, notes, and snippets.

@Jaliborc
Created January 6, 2012 18:59
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Jaliborc/1571919 to your computer and use it in GitHub Desktop.
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.
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