• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 04:41
CEST 10:41
KST 17:41
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Maestros of the Game: Week 1/Play-in Preview4[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9
Community News
Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris34Weekly Cups (Aug 11-17): MaxPax triples again!13Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195
StarCraft 2
General
#1: Maru - Greatest Players of All Time Maestros of the Game: Week 1/Play-in Preview Greatest Players of All Time: 2025 Update BoxeR's Wings Episode 2 - Fan Translation A Eulogy for the Six Pool
Tourneys
LiuLi Cup - August 2025 Tournaments $5,000 WardiTV Summer Championship 2025 Maestros of The Game—$20k event w/ live finals in Paris $5,100+ SEL Season 2 Championship (SC: Evo) Esports World Cup 2025
Strategy
Custom Maps
External Content
Mutation # 488 What Goes Around Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below
Brood War
General
Post ASL20 Ro24 discussion. Easiest luckies way to get out of Asl groups BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ No Rain in ASL20?
Tourneys
[ASL20] Ro24 Group F [IPSL] CSLAN Review and CSLPRO Reimagined! [ASL20] Ro24 Group E [ASL20] Ro24 Group D
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
General RTS Discussion Thread Nintendo Switch Thread Stormgate/Frost Giant Megathread Mechabellum Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread YouTube Thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread Russo-Ukrainian War Thread
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s) Gtx660 graphics card replacement
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
Lemme tell you a thing o…
JoinTheRain
How Culture and Conflict Imp…
TrAiDoS
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
INDEPENDIENTE LA CTM
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1804 users

SC2Replay auto uploader script

Blogs > zhurai
Post a Reply
zhurai
Profile Blog Joined September 2010
United States5660 Posts
November 29 2012 21:46 GMT
#1
Requires:
- Python 2.7 (at least? idk Python 3)
- SC2Gears or something else that saves replays in a set format
- Ge.tt Account (atm)
- pygett module (see http://pypi.python.org/pypi/pygett/)

All my personal information (apikey, email, passwords, whatever) are stripped from this, obviously for security reasons

Ge.tt was used cause there's an easy api for it that I can just register :very: easily.

Drop.sc would've been better, but I don't have the money to spend for uploading zip's... and I don't think it's good to upload each file individually /shrug

python is used cause I like python more than C/C++/Java/whatever

SC2Gears saves the replays (in my settings) as "\/f\/d\/F4 - ./m./G./d./h./e", so I can sort out all the non 1v1 games, and then grab the games by date

I should say after doing this, python's slice was kinda funny :o

I can't really paste python code here too well because all the spaces get truncated. (I posted it on my blog cause <pre> tags are funny)
http://zhurai.com/683-personal-coding-project-python-based-sc2replay-uploader/






(things I learnt from doing this random project:
Zipfile/Zip library
pygett/gett api
python slices
Banging my head to use slices rather than randomly for no reason using rstrip which obviously isn't what I want... in another program....)

Now time to put this onto my taskscheduler to auto do this every 11:50pm .... :o

Twitter: @zhurai | Site: http://zhurai.com
Antylamon
Profile Joined March 2011
United States1981 Posts
November 29 2012 22:43 GMT
#2
Related:

[image loading]
zhurai
Profile Blog Joined September 2010
United States5660 Posts
November 29 2012 22:46 GMT
#3
On November 30 2012 07:43 Antylamon wrote:
Related:

[image loading]

python is pretty nice though, I do like it more than C/C++/Java

I did also do perl a long time ago, but the syntax most of the time makes my head hurt...

D:
Twitter: @zhurai | Site: http://zhurai.com
Seeker *
Profile Blog Joined April 2005
Where dat snitch at?37027 Posts
November 30 2012 00:38 GMT
#4
http://wiki.teamliquid.net/starcraft/Python

[image loading]

I love Python
ModeratorPeople ask me, "Seeker, what are you seeking?" My answer? "Sleep, damn it! Always sleep!"
TL+ Member
Please log in or register to reply.
Live Events Refresh
Next event in 3h 19m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
Sea 4084
actioN 238
JulyZerg 149
PianO 131
Zeus 110
TY 89
Yoon 73
Backho 73
Movie 50
ToSsGirL 49
[ Show more ]
Noble 28
Bale 9
Hm[arnc] 9
Soma 1
Dota 2
XcaliburYe315
NeuroSwarm108
League of Legends
JimRising 479
Counter-Strike
Stewie2K888
Other Games
Happy170
Fuzer 154
SortOf90
Organizations
Counter-Strike
PGL943
Other Games
gamesdonequick839
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• Berry_CruncH403
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos1143
• Stunt465
Upcoming Events
SC Evo League
3h 19m
TaeJa vs Cure
Rogue vs threepoint
ByuN vs Creator
MaNa vs Classic
Maestros of the Game
7h 19m
ShoWTimE vs Cham
GuMiho vs Ryung
Zoun vs Spirit
Rogue vs MaNa
[BSL 2025] Weekly
9h 19m
SC Evo League
1d 3h
Maestros of the Game
1d 7h
SHIN vs Creator
Astrea vs Lambo
Bunny vs SKillous
HeRoMaRinE vs TriGGeR
BSL Team Wars
1d 10h
Team Bonyth vs Team Sziky
BSL Team Wars
1d 10h
Team Dewalt vs Team Sziky
Afreeca Starleague
2 days
Soulkey vs BeSt
Snow vs Light
Monday Night Weeklies
2 days
Replay Cast
2 days
[ Show More ]
Sparkling Tuna Cup
3 days
PiGosaur Monday
3 days
LiuLi Cup
4 days
Replay Cast
4 days
The PondCast
5 days
RSL Revival
5 days
Maru vs SHIN
MaNa vs MaxPax
RSL Revival
6 days
Reynor vs Astrea
Classic vs sOs
BSL Team Wars
6 days
Team Bonyth vs Team Dewalt
Liquipedia Results

Completed

Acropolis #4 - TS1
WardiTV Summer 2025
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
CSL Season 18: Qualifier 2
Maestros of the Game
SEL Season 2 Championship
Sisters' Call Cup
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
EC S1
BLAST Rivals Fall 2025
Skyesports Masters 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.