Upvote Upvoted 15 Downvote Downvoted
STV Grabber to automatically extract .ss demo
posted in Projects
1
#1
0 Frags +

Download Link
I was challenged by a friend to create a program to download from an SS link. So you copy the SS link, open the program, hit enter, and everything else is done automatically. It goes to your TF directory by default. I just made it so there is most likely tons of bugs in the code, and if you do get a bug please post it here along with your OS, and x32 or x64.

EDIT: Added github link so you can always be updated when I update it. Also major thanks to toad for the UI.

[url=https://github.com/novazzz/ssDemoDl]Download Link[/url]
I was challenged by a friend to create a program to download from an SS link. So you copy the SS link, open the program, hit enter, and everything else is done automatically. It goes to your TF directory by default. I just made it so there is most likely tons of bugs in the code, and if you do get a bug please post it here along with your OS, and x32 or x64.

EDIT: Added github link so you can always be updated when I update it. Also major thanks to toad for the UI.
2
#2
1 Frags +
novvaDownload Link
I was challenged by a friend to create a program to download from an SS link. So you copy the SS link, open the program, hit enter, and everything else is done automatically. It goes to your TF directory by default. I just made it so there is most likely tons of bugs in the code, and if you do get a bug please post it here along with your OS, and x32 or x64.

That's a super cool program, thanks for sharing it!

[quote=novva][url=http://www.mediafire.com/download/y57t707fqzgg6kh/STVGrabber.rar]Download Link[/url]
I was challenged by a friend to create a program to download from an SS link. So you copy the SS link, open the program, hit enter, and everything else is done automatically. It goes to your TF directory by default. I just made it so there is most likely tons of bugs in the code, and if you do get a bug please post it here along with your OS, and x32 or x64.[/quote]

That's a super cool program, thanks for sharing it!
3
#3
5 Frags +

Hey, I've built a UI for this program, here's the source code. Very basic, but you can improve upon it if you will. It uses Tkinter, but that comes with python so no worries. I don't have Pyinstaller for 2.7 so I didn't build it, but you can if you'd like :) you'll probably have to fix the tabbage, so here's a puush of the file: http://puu.sh/pJyOR/ec037e30b0.py

Show Content
import random, sys, httplib2, win32clipboard, webbrowser, time, zipfile, os, urllib, requests
from copy import deepcopy
from bs4 import SoupStrainer
from bs4 import BeautifulSoup
from urllib2 import Request
from urllib2 import urlopen
from tqdm import tqdm
from Tkinter import *

#When I wrote this, only God and I knew what I was writing
#Now only God knows
#
#added GUI -todes
#(toads_tf also knows)

def download_zip(page,path):
data = "http://sizzlingstv.s3.amazonaws.com/stv/"+ page[-6:] +".zip"
filename = page[-6:] + ".zip"
try:
urllib.urlretrieve (data, filename)
print data
except:
print("No zip file was found, ending program...")
os.remove(filename)
time.sleep(5)
exit()

for i in tqdm(range(100)):
time.sleep(0.02)
try:
zip_ref = zipfile.ZipFile(filename, 'r')
zip_ref.extractall(path)
zip_ref.close()
os.remove(filename)
except Exception as e:
print str(e)
gameVar = StringVar()
top = Toplevel()
top.title('Error')
msg = Message(top,text="Something went wrong while exporting. Try putting your Team Fortress 2\\tf folder path here, but with double slashes. (\\\, not \)")
msg.pack()
gameDir = Entry(top,textvariable=gameVar,width=20)
gameDir.pack()
changeBtn = Button(top,text='Retry',command=lambda:download_zip(link.get(),gameVar.get()),width=7)
changeBtn.pack()

TOPP = Toplevel()
TOPP.title('Complete!')
mensaje= Message(TOPP,text=filename + " From " + data + " has been downloaded and extracted.")
mensaje.pack()
time.sleep(5)

window = Tk()
window.title('Sizzlingstats Downloader')

link = StringVar()

info = Label(window,text='Please copy the .ss link below:')
info.pack()
linkBox = Entry(window,textvariable=link,width=30)
linkBox.pack()
goBtn = Button(window,text='Go',command=lambda:download_zip(link.get(),"C:\\Program Files (x86)\\Steam\\steamapps\\common\\Team Fortress 2\\tf"),width=10)
goBtn.pack()

window.mainloop()
Hey, I've built a UI for this program, here's the source code. Very basic, but you can improve upon it if you will. It uses Tkinter, but that comes with python so no worries. I don't have Pyinstaller for 2.7 so I didn't build it, but you can if you'd like :) you'll probably have to fix the tabbage, so here's a puush of the file: http://puu.sh/pJyOR/ec037e30b0.py
[spoiler]import random, sys, httplib2, win32clipboard, webbrowser, time, zipfile, os, urllib, requests
from copy import deepcopy
from bs4 import SoupStrainer
from bs4 import BeautifulSoup
from urllib2 import Request
from urllib2 import urlopen
from tqdm import tqdm
from Tkinter import *

#When I wrote this, only God and I knew what I was writing
#Now only God knows
#
#added GUI -todes
#(toads_tf also knows)

def download_zip(page,path):
data = "http://sizzlingstv.s3.amazonaws.com/stv/"+ page[-6:] +".zip"
filename = page[-6:] + ".zip"
try:
urllib.urlretrieve (data, filename)
print data
except:
print("No zip file was found, ending program...")
os.remove(filename)
time.sleep(5)
exit()

for i in tqdm(range(100)):
time.sleep(0.02)
try:
zip_ref = zipfile.ZipFile(filename, 'r')
zip_ref.extractall(path)
zip_ref.close()
os.remove(filename)
except Exception as e:
print str(e)
gameVar = StringVar()
top = Toplevel()
top.title('Error')
msg = Message(top,text="Something went wrong while exporting. Try putting your Team Fortress 2\\tf folder path here, but with double slashes. (\\\, not \)")
msg.pack()
gameDir = Entry(top,textvariable=gameVar,width=20)
gameDir.pack()
changeBtn = Button(top,text='Retry',command=lambda:download_zip(link.get(),gameVar.get()),width=7)
changeBtn.pack()

TOPP = Toplevel()
TOPP.title('Complete!')
mensaje= Message(TOPP,text=filename + " From " + data + " has been downloaded and extracted.")
mensaje.pack()
time.sleep(5)

window = Tk()
window.title('Sizzlingstats Downloader')

link = StringVar()

info = Label(window,text='Please copy the .ss link below:')
info.pack()
linkBox = Entry(window,textvariable=link,width=30)
linkBox.pack()
goBtn = Button(window,text='Go',command=lambda:download_zip(link.get(),"C:\\Program Files (x86)\\Steam\\steamapps\\common\\Team Fortress 2\\tf"),width=10)
goBtn.pack()

window.mainloop()
[/spoiler]
4
#4
2 Frags +
toads_tfHey, I've built a UI for this program, here's the source code. Very basic, but you can improve upon it if you will. It uses Tkinter, but that comes with python so no worries. I don't have Pyinstaller for 2.7 so I didn't build it, but you can if you'd like :) you'll probably have to fix the tabbage, so here's a puush of the file: http://puu.sh/pJyOR/ec037e30b0.py
Show Content
import random, sys, httplib2, win32clipboard, webbrowser, time, zipfile, os, urllib, requests
from copy import deepcopy
from bs4 import SoupStrainer
from bs4 import BeautifulSoup
from urllib2 import Request
from urllib2 import urlopen
from tqdm import tqdm
from Tkinter import *

#When I wrote this, only God and I knew what I was writing
#Now only God knows
#
#added GUI -todes
#(toads_tf also knows)

def download_zip(page,path):
data = "http://sizzlingstv.s3.amazonaws.com/stv/"+ page[-6:] +".zip"
filename = page[-6:] + ".zip"
try:
urllib.urlretrieve (data, filename)
print data
except:
print("No zip file was found, ending program...")
os.remove(filename)
time.sleep(5)
exit()

for i in tqdm(range(100)):
time.sleep(0.02)
try:
zip_ref = zipfile.ZipFile(filename, 'r')
zip_ref.extractall(path)
zip_ref.close()
os.remove(filename)
except Exception as e:
print str(e)
gameVar = StringVar()
top = Toplevel()
top.title('Error')
msg = Message(top,text="Something went wrong while exporting. Try putting your Team Fortress 2\\tf folder path here, but with double slashes. (\\\, not \)")
msg.pack()
gameDir = Entry(top,textvariable=gameVar,width=20)
gameDir.pack()
changeBtn = Button(top,text='Retry',command=lambda:download_zip(link.get(),gameVar.get()),width=7)
changeBtn.pack()

TOPP = Toplevel()
TOPP.title('Complete!')
mensaje= Message(TOPP,text=filename + " From " + data + " has been downloaded and extracted.")
mensaje.pack()
time.sleep(5)

window = Tk()
window.title('Sizzlingstats Downloader')

link = StringVar()

info = Label(window,text='Please copy the .ss link below:')
info.pack()
linkBox = Entry(window,textvariable=link,width=30)
linkBox.pack()
goBtn = Button(window,text='Go',command=lambda:download_zip(link.get(),"C:\\Program Files (x86)\\Steam\\steamapps\\common\\Team Fortress 2\\tf"),width=10)
goBtn.pack()

window.mainloop()

My god, thank you so much!

[quote=toads_tf]Hey, I've built a UI for this program, here's the source code. Very basic, but you can improve upon it if you will. It uses Tkinter, but that comes with python so no worries. I don't have Pyinstaller for 2.7 so I didn't build it, but you can if you'd like :) you'll probably have to fix the tabbage, so here's a puush of the file: http://puu.sh/pJyOR/ec037e30b0.py
[spoiler]import random, sys, httplib2, win32clipboard, webbrowser, time, zipfile, os, urllib, requests
from copy import deepcopy
from bs4 import SoupStrainer
from bs4 import BeautifulSoup
from urllib2 import Request
from urllib2 import urlopen
from tqdm import tqdm
from Tkinter import *

#When I wrote this, only God and I knew what I was writing
#Now only God knows
#
#added GUI -todes
#(toads_tf also knows)

def download_zip(page,path):
data = "http://sizzlingstv.s3.amazonaws.com/stv/"+ page[-6:] +".zip"
filename = page[-6:] + ".zip"
try:
urllib.urlretrieve (data, filename)
print data
except:
print("No zip file was found, ending program...")
os.remove(filename)
time.sleep(5)
exit()

for i in tqdm(range(100)):
time.sleep(0.02)
try:
zip_ref = zipfile.ZipFile(filename, 'r')
zip_ref.extractall(path)
zip_ref.close()
os.remove(filename)
except Exception as e:
print str(e)
gameVar = StringVar()
top = Toplevel()
top.title('Error')
msg = Message(top,text="Something went wrong while exporting. Try putting your Team Fortress 2\\tf folder path here, but with double slashes. (\\\, not \)")
msg.pack()
gameDir = Entry(top,textvariable=gameVar,width=20)
gameDir.pack()
changeBtn = Button(top,text='Retry',command=lambda:download_zip(link.get(),gameVar.get()),width=7)
changeBtn.pack()

TOPP = Toplevel()
TOPP.title('Complete!')
mensaje= Message(TOPP,text=filename + " From " + data + " has been downloaded and extracted.")
mensaje.pack()
time.sleep(5)

window = Tk()
window.title('Sizzlingstats Downloader')

link = StringVar()

info = Label(window,text='Please copy the .ss link below:')
info.pack()
linkBox = Entry(window,textvariable=link,width=30)
linkBox.pack()
goBtn = Button(window,text='Go',command=lambda:download_zip(link.get(),"C:\\Program Files (x86)\\Steam\\steamapps\\common\\Team Fortress 2\\tf"),width=10)
goBtn.pack()

window.mainloop()
[/spoiler][/quote]
My god, thank you so much!
5
#5
0 Frags +
toads_tfHey, I've built a UI for this program, here's the source code. Very basic, but you can improve upon it if you will. It uses Tkinter, but that comes with python so no worries. I don't have Pyinstaller for 2.7 so I didn't build it, but you can if you'd like :) you'll probably have to fix the tabbage, so here's a puush of the file: http://puu.sh/pJyOR/ec037e30b0.py
Show Content
import random, sys, httplib2, win32clipboard, webbrowser, time, zipfile, os, urllib, requests
from copy import deepcopy
from bs4 import SoupStrainer
from bs4 import BeautifulSoup
from urllib2 import Request
from urllib2 import urlopen
from tqdm import tqdm
from Tkinter import *

#When I wrote this, only God and I knew what I was writing
#Now only God knows
#
#added GUI -todes
#(toads_tf also knows)

def download_zip(page,path):
data = "http://sizzlingstv.s3.amazonaws.com/stv/"+ page[-6:] +".zip"
filename = page[-6:] + ".zip"
try:
urllib.urlretrieve (data, filename)
print data
except:
print("No zip file was found, ending program...")
os.remove(filename)
time.sleep(5)
exit()

for i in tqdm(range(100)):
time.sleep(0.02)
try:
zip_ref = zipfile.ZipFile(filename, 'r')
zip_ref.extractall(path)
zip_ref.close()
os.remove(filename)
except Exception as e:
print str(e)
gameVar = StringVar()
top = Toplevel()
top.title('Error')
msg = Message(top,text="Something went wrong while exporting. Try putting your Team Fortress 2\\tf folder path here, but with double slashes. (\\\, not \)")
msg.pack()
gameDir = Entry(top,textvariable=gameVar,width=20)
gameDir.pack()
changeBtn = Button(top,text='Retry',command=lambda:download_zip(link.get(),gameVar.get()),width=7)
changeBtn.pack()

TOPP = Toplevel()
TOPP.title('Complete!')
mensaje= Message(TOPP,text=filename + " From " + data + " has been downloaded and extracted.")
mensaje.pack()
time.sleep(5)

window = Tk()
window.title('Sizzlingstats Downloader')

link = StringVar()

info = Label(window,text='Please copy the .ss link below:')
info.pack()
linkBox = Entry(window,textvariable=link,width=30)
linkBox.pack()
goBtn = Button(window,text='Go',command=lambda:download_zip(link.get(),"C:\\Program Files (x86)\\Steam\\steamapps\\common\\Team Fortress 2\\tf"),width=10)
goBtn.pack()

window.mainloop()

I hate to ask, but can you update this ui for the new code? I added renaming the demos... https://github.com/novazzz/ssDemoDl If you don't want to I understand.

[quote=toads_tf]Hey, I've built a UI for this program, here's the source code. Very basic, but you can improve upon it if you will. It uses Tkinter, but that comes with python so no worries. I don't have Pyinstaller for 2.7 so I didn't build it, but you can if you'd like :) you'll probably have to fix the tabbage, so here's a puush of the file: http://puu.sh/pJyOR/ec037e30b0.py
[spoiler]import random, sys, httplib2, win32clipboard, webbrowser, time, zipfile, os, urllib, requests
from copy import deepcopy
from bs4 import SoupStrainer
from bs4 import BeautifulSoup
from urllib2 import Request
from urllib2 import urlopen
from tqdm import tqdm
from Tkinter import *

#When I wrote this, only God and I knew what I was writing
#Now only God knows
#
#added GUI -todes
#(toads_tf also knows)

def download_zip(page,path):
data = "http://sizzlingstv.s3.amazonaws.com/stv/"+ page[-6:] +".zip"
filename = page[-6:] + ".zip"
try:
urllib.urlretrieve (data, filename)
print data
except:
print("No zip file was found, ending program...")
os.remove(filename)
time.sleep(5)
exit()

for i in tqdm(range(100)):
time.sleep(0.02)
try:
zip_ref = zipfile.ZipFile(filename, 'r')
zip_ref.extractall(path)
zip_ref.close()
os.remove(filename)
except Exception as e:
print str(e)
gameVar = StringVar()
top = Toplevel()
top.title('Error')
msg = Message(top,text="Something went wrong while exporting. Try putting your Team Fortress 2\\tf folder path here, but with double slashes. (\\\, not \)")
msg.pack()
gameDir = Entry(top,textvariable=gameVar,width=20)
gameDir.pack()
changeBtn = Button(top,text='Retry',command=lambda:download_zip(link.get(),gameVar.get()),width=7)
changeBtn.pack()

TOPP = Toplevel()
TOPP.title('Complete!')
mensaje= Message(TOPP,text=filename + " From " + data + " has been downloaded and extracted.")
mensaje.pack()
time.sleep(5)

window = Tk()
window.title('Sizzlingstats Downloader')

link = StringVar()

info = Label(window,text='Please copy the .ss link below:')
info.pack()
linkBox = Entry(window,textvariable=link,width=30)
linkBox.pack()
goBtn = Button(window,text='Go',command=lambda:download_zip(link.get(),"C:\\Program Files (x86)\\Steam\\steamapps\\common\\Team Fortress 2\\tf"),width=10)
goBtn.pack()

window.mainloop()
[/spoiler][/quote]
I hate to ask, but can you update this ui for the new code? I added renaming the demos... https://github.com/novazzz/ssDemoDl If you don't want to I understand.
6
#6
0 Frags +
novvatoads_tfHey, I've built a UI for this program, here's the source code. Very basic, but you can improve upon it if you will. It uses Tkinter, but that comes with python so no worries. I don't have Pyinstaller for 2.7 so I didn't build it, but you can if you'd like :) you'll probably have to fix the tabbage, so here's a puush of the file: http://puu.sh/pJyOR/ec037e30b0.py
Show Content
import random, sys, httplib2, win32clipboard, webbrowser, time, zipfile, os, urllib, requests
from copy import deepcopy
from bs4 import SoupStrainer
from bs4 import BeautifulSoup
from urllib2 import Request
from urllib2 import urlopen
from tqdm import tqdm
from Tkinter import *

#When I wrote this, only God and I knew what I was writing
#Now only God knows
#
#added GUI -todes
#(toads_tf also knows)

def download_zip(page,path):
data = "http://sizzlingstv.s3.amazonaws.com/stv/"+ page[-6:] +".zip"
filename = page[-6:] + ".zip"
try:
urllib.urlretrieve (data, filename)
print data
except:
print("No zip file was found, ending program...")
os.remove(filename)
time.sleep(5)
exit()

for i in tqdm(range(100)):
time.sleep(0.02)
try:
zip_ref = zipfile.ZipFile(filename, 'r')
zip_ref.extractall(path)
zip_ref.close()
os.remove(filename)
except Exception as e:
print str(e)
gameVar = StringVar()
top = Toplevel()
top.title('Error')
msg = Message(top,text="Something went wrong while exporting. Try putting your Team Fortress 2\\tf folder path here, but with double slashes. (\\\, not \)")
msg.pack()
gameDir = Entry(top,textvariable=gameVar,width=20)
gameDir.pack()
changeBtn = Button(top,text='Retry',command=lambda:download_zip(link.get(),gameVar.get()),width=7)
changeBtn.pack()

TOPP = Toplevel()
TOPP.title('Complete!')
mensaje= Message(TOPP,text=filename + " From " + data + " has been downloaded and extracted.")
mensaje.pack()
time.sleep(5)

window = Tk()
window.title('Sizzlingstats Downloader')

link = StringVar()

info = Label(window,text='Please copy the .ss link below:')
info.pack()
linkBox = Entry(window,textvariable=link,width=30)
linkBox.pack()
goBtn = Button(window,text='Go',command=lambda:download_zip(link.get(),"C:\\Program Files (x86)\\Steam\\steamapps\\common\\Team Fortress 2\\tf"),width=10)
goBtn.pack()

window.mainloop()
I hate to ask, but can you update this ui for the new code? I added renaming the demos... https://github.com/novazzz/ssDemoDl If you don't want to I understand.

hey add me to that project (toadsTF), I can hook you up real quick

e: yeah im gonna need source code there, not just the built program

[quote=novva][quote=toads_tf]Hey, I've built a UI for this program, here's the source code. Very basic, but you can improve upon it if you will. It uses Tkinter, but that comes with python so no worries. I don't have Pyinstaller for 2.7 so I didn't build it, but you can if you'd like :) you'll probably have to fix the tabbage, so here's a puush of the file: http://puu.sh/pJyOR/ec037e30b0.py
[spoiler]import random, sys, httplib2, win32clipboard, webbrowser, time, zipfile, os, urllib, requests
from copy import deepcopy
from bs4 import SoupStrainer
from bs4 import BeautifulSoup
from urllib2 import Request
from urllib2 import urlopen
from tqdm import tqdm
from Tkinter import *

#When I wrote this, only God and I knew what I was writing
#Now only God knows
#
#added GUI -todes
#(toads_tf also knows)

def download_zip(page,path):
data = "http://sizzlingstv.s3.amazonaws.com/stv/"+ page[-6:] +".zip"
filename = page[-6:] + ".zip"
try:
urllib.urlretrieve (data, filename)
print data
except:
print("No zip file was found, ending program...")
os.remove(filename)
time.sleep(5)
exit()

for i in tqdm(range(100)):
time.sleep(0.02)
try:
zip_ref = zipfile.ZipFile(filename, 'r')
zip_ref.extractall(path)
zip_ref.close()
os.remove(filename)
except Exception as e:
print str(e)
gameVar = StringVar()
top = Toplevel()
top.title('Error')
msg = Message(top,text="Something went wrong while exporting. Try putting your Team Fortress 2\\tf folder path here, but with double slashes. (\\\, not \)")
msg.pack()
gameDir = Entry(top,textvariable=gameVar,width=20)
gameDir.pack()
changeBtn = Button(top,text='Retry',command=lambda:download_zip(link.get(),gameVar.get()),width=7)
changeBtn.pack()

TOPP = Toplevel()
TOPP.title('Complete!')
mensaje= Message(TOPP,text=filename + " From " + data + " has been downloaded and extracted.")
mensaje.pack()
time.sleep(5)

window = Tk()
window.title('Sizzlingstats Downloader')

link = StringVar()

info = Label(window,text='Please copy the .ss link below:')
info.pack()
linkBox = Entry(window,textvariable=link,width=30)
linkBox.pack()
goBtn = Button(window,text='Go',command=lambda:download_zip(link.get(),"C:\\Program Files (x86)\\Steam\\steamapps\\common\\Team Fortress 2\\tf"),width=10)
goBtn.pack()

window.mainloop()
[/spoiler][/quote]
I hate to ask, but can you update this ui for the new code? I added renaming the demos... https://github.com/novazzz/ssDemoDl If you don't want to I understand.[/quote]
hey add me to that project (toadsTF), I can hook you up real quick

e: yeah im gonna need source code there, not just the built program
7
#7
0 Frags +

yeah here: http://puu.sh/pJRwz/a1f1ac2e68.py

Show Content
import random, sys, httplib2, win32clipboard, webbrowser, time, zipfile, os, urllib, requests
from copy import deepcopy
from bs4 import SoupStrainer
from bs4 import BeautifulSoup
from urllib2 import Request
from urllib2 import urlopen
from tqdm import tqdm
from Tkinter import *

#When I wrote this, only God and I knew what I was writing
#Now only God knows
#
#added GUI -todes
#(toads_tf also knows)

def download_zip(page,path,cname):
data = "http://sizzlingstv.s3.amazonaws.com/stv/"+ page[-6:] +".zip"
filename = page[-6:] + ".zip"
try:
urllib.urlretrieve (data, filename)
print data
except:
print("No zip file was found, ending program...")
os.remove(filename)
time.sleep(5)
exit()

for i in tqdm(range(100)):
time.sleep(0.02)
try:
zip_ref = zipfile.ZipFile(filename, 'r')
demoname = str(zip_ref.namelist()[0])
print(demoname)
zip_ref.extractall(path)
zip_ref.close()
if cname != '':
os.rename(path+'\\'+demoname,path+'\\'+cname+'.dem')
os.remove(filename)
except Exception as e:
print str(e)
gameVar = StringVar()
top = Toplevel()
top.title('Error')
msg = Message(top,text="Something went wrong while exporting. Try putting your Team Fortress 2\\tf folder path here, but with double slashes. (\\\, not \)")
msg.pack()
gameDir = Entry(top,textvariable=gameVar,width=20)
gameDir.pack()
changeBtn = Button(top,text='Retry',command=lambda:download_zip(link.get(),gameVar.get(),''),width=7)
changeBtn.pack()

TOPP = Toplevel()
TOPP.title('Complete!')
mensaje= Message(TOPP,text=filename + " From " + data + " has been downloaded and extracted.")
mensaje.pack()
time.sleep(5)

window = Tk()
window.title('Sizzlingstats Downloader')

link = StringVar()
customName = StringVar()

info = Label(window,text='Please copy the .ss link below:')
info.pack()
linkBox = Entry(window,textvariable=link,width=30)
linkBox.pack()
infoS = Label(window,text='Name .dem file (optional, leave blank for default name):')
infoS.pack()
nameBox = Entry(window,textvariable=customName,width=30)
nameBox.pack()
goBtn = Button(window,text='Go',command=lambda:download_zip(link.get(),"C:\\Program Files (x86)\\Steam\\steamapps\\common\\Team Fortress 2\\tf",customName.get()),width=10)
goBtn.pack()

window.mainloop()

maybe update OP with this stuff

yeah here: http://puu.sh/pJRwz/a1f1ac2e68.py
[spoiler]
import random, sys, httplib2, win32clipboard, webbrowser, time, zipfile, os, urllib, requests
from copy import deepcopy
from bs4 import SoupStrainer
from bs4 import BeautifulSoup
from urllib2 import Request
from urllib2 import urlopen
from tqdm import tqdm
from Tkinter import *

#When I wrote this, only God and I knew what I was writing
#Now only God knows
#
#added GUI -todes
#(toads_tf also knows)

def download_zip(page,path,cname):
data = "http://sizzlingstv.s3.amazonaws.com/stv/"+ page[-6:] +".zip"
filename = page[-6:] + ".zip"
try:
urllib.urlretrieve (data, filename)
print data
except:
print("No zip file was found, ending program...")
os.remove(filename)
time.sleep(5)
exit()

for i in tqdm(range(100)):
time.sleep(0.02)
try:
zip_ref = zipfile.ZipFile(filename, 'r')
demoname = str(zip_ref.namelist()[0])
print(demoname)
zip_ref.extractall(path)
zip_ref.close()
if cname != '':
os.rename(path+'\\'+demoname,path+'\\'+cname+'.dem')
os.remove(filename)
except Exception as e:
print str(e)
gameVar = StringVar()
top = Toplevel()
top.title('Error')
msg = Message(top,text="Something went wrong while exporting. Try putting your Team Fortress 2\\tf folder path here, but with double slashes. (\\\, not \)")
msg.pack()
gameDir = Entry(top,textvariable=gameVar,width=20)
gameDir.pack()
changeBtn = Button(top,text='Retry',command=lambda:download_zip(link.get(),gameVar.get(),''),width=7)
changeBtn.pack()

TOPP = Toplevel()
TOPP.title('Complete!')
mensaje= Message(TOPP,text=filename + " From " + data + " has been downloaded and extracted.")
mensaje.pack()
time.sleep(5)

window = Tk()
window.title('Sizzlingstats Downloader')

link = StringVar()
customName = StringVar()

info = Label(window,text='Please copy the .ss link below:')
info.pack()
linkBox = Entry(window,textvariable=link,width=30)
linkBox.pack()
infoS = Label(window,text='Name .dem file (optional, leave blank for default name):')
infoS.pack()
nameBox = Entry(window,textvariable=customName,width=30)
nameBox.pack()
goBtn = Button(window,text='Go',command=lambda:download_zip(link.get(),"C:\\Program Files (x86)\\Steam\\steamapps\\common\\Team Fortress 2\\tf",customName.get()),width=10)
goBtn.pack()

window.mainloop()[/spoiler]
maybe update OP with this stuff
Please sign in through STEAM to post a comment.