Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from time import time
- import urllib.request
- import zipfile
- '''
- This is a modification of "The undermine journal" auto updater as created originally by Reverb on the consortium
- forums as the original download for the drop box has dissappeared this will be posted on pastebin and kept
- on an external HDD.
- This version is modified by j311yf1sh on the consortium forums.
- USAGE:
- Replace url with your undermine journal URL (http://i.imgur.com/NfYlC.png), right click and copy url, then paste in between the double quotes
- Change the location of filename to a more suitable one for you. everyone will be a different file structure.
- Change the destination path to your world of wacraft addons folder, it may be different for everyone.
- Please refer to http://stormspire.net/official-forum-undermine-journal/3024-guide-maintaining-tuj-realm-edition-information-automagically.html
- for further information.
- '''
- #replace this.
- url = "Paste url here"
- #replace this.
- filename = "C:\\Users\\Home\\Documents\\TUJ\\TheUndermineJournal.zip"
- #replace this.
- destinationPath = "C:\\Program Files (x86)\\World of Warcraft\\Interface\\AddOns"
- print("Downloading...")
- urllib.request.urlretrieve(url,filename)
- print("Unzipping...")
- sourceZip = zipfile.ZipFile(filename, 'r')
- for name in sourceZip.namelist():
- sourceZip.extract(name, destinationPath)
- sourceZip.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement