• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 09:08
CET 14:08
KST 22:08
  • 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
ByuL: The Forgotten Master of ZvT29Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
Blizzard Classic Cup - Tastosis announced as captains3Weekly Cups (March 2-8): ByuN overcomes PvT block4GSL CK - New online series15BSL Season 224Vitality ends partnership with ONSYDE20
StarCraft 2
General
GSL CK - New online series Weekly Cups (March 2-8): ByuN overcomes PvT block Blizzard Classic Cup - Tastosis announced as captains Weekly Cups (Feb 23-Mar 1): herO doubles, 2v2 bonanza Vitality ends partnership with ONSYDE
Tourneys
[GSL CK] Team Maru vs. Team herO Master Swan Open (Global Bronze-Master 2) RSL Season 4 announced for March-April Sparkling Tuna Cup - Weekly Open Tournament PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar)
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
The PondCast: SC2 News & Results Mutation # 516 Specter of Death Mutation # 515 Together Forever Mutation # 514 Ulnar New Year
Brood War
General
ASL21 General Discussion Recent recommended BW games BSL 22 Map Contest — Submissions OPEN to March 10 BGH Auto Balance -> http://bghmmr.eu/ BSL Season 22
Tourneys
IPSL Spring 2026 is here! ASL Season 21 Qualifiers March 7-8 [Megathread] Daily Proleagues BWCL Season 64 Announcement
Strategy
Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates Simple Questions, Simple Answers Zealot bombing is no longer popular?
Other Games
General Games
Nintendo Switch Thread PC Games Sales Thread Path of Exile No Man's Sky (PS4 and PC) Stormgate/Frost Giant Megathread
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Mexico's Drug War Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread YouTube Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece
Sports
2024 - 2026 Football Thread Formula 1 Discussion General nutrition recommendations Cricket [SPORT] TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Gaming-Related Deaths
TrAiDoS
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1597 users

Starcraft 2 Twitter Updater: Learning Python

Blogs > CTangent
Post a Reply
CTangent
Profile Blog Joined April 2011
United States125 Posts
June 25 2012 11:13 GMT
#1
Hey Teamliquid! It's been a little while since I wrote a blog, and I've never written one that wasn't about Starcraft itself, so this will be new territory for me. Being a Computer Science major, I have decided to learn the Python programming language. I have a background in C and Java (with Java being my "native" language, so to speak, the one that I go to first if I have a choice). I am a somewhat skilled programmer in both Java and C, but I decided to branch out into the wonderful world of Python.

In order to learn Python, I've come up with an idea for a program just for fun. It will run in the background whenever the user plays starcraft 2, and will do the following things:

1) Whenever a new file is added into the "Unsaved" replay directory, I will copy it and place it into a new folder, altering the filename to be more descriptive.

2) Whenever this new folder reaches a certain number of replays, I will stop adding replays to it and create a different folder. (Replay pack generation)

3) Whenever my program copies a new replay, it posts the results to Twitter. Something like "I just [won/lost] a game vs [opponent] on [xyz map]!

4) My program will then look up the opponent's ladder data on SC2ranks and display it. Maybe I'll incorporate that into the tweet too.

5) My program will keep track of some basic statistics (win/loss ratio, average apm, etc) and display it to the user when queried.

I plan to release the source to this too if anyone is interested! I doubt that the program itself will be very useful, but I'm excited to create some sort of deliverable in a language I've never used.



501TFX
Profile Joined March 2011
Austria345 Posts
June 25 2012 15:10 GMT
#2
Sounds like an exciting little program, but I think posting EVERY win/loss on twitter is a little bit too much, I would more say you should post every 5th, 10th or you could let customize the amount of tweets the user itself.

I guess SC2Gears is already something like this, but as you said, it isn't supposed to be useful, so I'm not arguing on that point !
Sounds awesome, would love to see the source code. (Never saw python my self, but I am experienced in things like Java, PHP, etc)
Never let your dreams fade, run after them, run until you get them !
LeafMeAlone
Profile Blog Joined November 2010
United States301 Posts
June 25 2012 15:17 GMT
#3
Very interesting idea :O I hope you keep writing blogs about your progress. I'm starting to learn python myself
~_~
CTangent
Profile Blog Joined April 2011
United States125 Posts
Last Edited: 2012-06-25 16:06:52
June 25 2012 16:05 GMT
#4
On June 26 2012 00:10 FeelTHeBluEZ wrote:
Sounds like an exciting little program, but I think posting EVERY win/loss on twitter is a little bit too much, I would more say you should post every 5th, 10th or you could let customize the amount of tweets the user itself.

I guess SC2Gears is already something like this, but as you said, it isn't supposed to be useful, so I'm not arguing on that point !
Sounds awesome, would love to see the source code. (Never saw python my self, but I am experienced in things like Java, PHP, etc)


Thanks! You're right about the tweets, maybe every game is a little extreme. I can easily add a configuration such that it only posts every few games, and posts something along the lines of "I just won x out of my last y games!", or whatever. I just really wanted to get some experience linking up Python with Twitter's API. I'll be sure to post the source code! I'll probably throw it up on github when I get some amount of code.

I realize that SC2gears does a lot of this already, haha. I'm not hoping to compete at all with sc2gears, I'm just writing a fun little program for some Python experience.

On June 26 2012 00:17 LeafMeAlone wrote:
Very interesting idea :O I hope you keep writing blogs about your progress. I'm starting to learn python myself


Will do! I'll post a link to github when I get some code, too. Diving into a small little project like this is definitely the way to go if you want to learn a language! I'm having a lot of fun doing this little project so far.


aike
Profile Blog Joined July 2010
United States1629 Posts
June 25 2012 16:58 GMT
#5
I really need to learn Python one of these days lol. I've always meant to, just always too busy with other stuff. I use PHP mostly, but a little bit of everything else when needed, and the basic idea of all these languages are the same so it's not much work to understand what's going on with Python, I just don't know any of the syntax by heart This sounds like a fun little project, and I do know some people that wouldn't mind using it. What I think would be great with the twitter API is if you could customize the message... So you have say a form with different options where you can choose conditions (On: Loss vs Zerg) followed by the message (Message: "I just lost to a fking Zerg again") or something random like that And allow variables to be added to the message, similar to how you can add variables to your replays that get renamed in SC2Gears.
Wahaha
Please log in or register to reply.
Live Events Refresh
WardiTV Team League
12:00
Group A
WardiTV645
TKL 216
Liquipedia
GSL
10:00
GSL CK - Day 1
CranKy Ducklings SOOP112
Rex52
herO (Afreeca)41
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko332
TKL 216
IndyStarCraft 111
Rex 52
herO (Afreeca) 41
StarCraft: Brood War
Britney 39146
Bisu 2474
Jaedong 1815
Shuttle 1354
EffOrt 493
Mini 412
firebathero 342
Stork 333
Soma 249
Light 242
[ Show more ]
Last 238
ZerO 190
Rush 189
Snow 175
ggaemo 139
Leta 128
Pusan 86
Mind 84
Hyun 79
ToSsGirL 78
Sharp 78
Backho 74
JYJ 66
Mong 62
Dewaltoss 62
sorry 23
soO 21
Noble 18
Nal_rA 18
sSak 17
GoRush 12
JulyZerg 11
IntoTheRainbow 11
SilentControl 7
Terrorterran 4
Icarus 1
Dota 2
Gorgc3777
canceldota71
Counter-Strike
olofmeister1546
x6flipin438
zeus82
oskar59
edward12
Super Smash Bros
Mew2King79
Other Games
singsing1747
B2W.Neo894
hiko374
Fuzer 351
Pyrionflax206
crisheroes161
KnowMe117
ToD99
ZerO(Twitch)10
Organizations
Dota 2
PGL Dota 2 - Main Stream13449
Other Games
gamesdonequick909
StarCraft: Brood War
lovetv 11
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• 3DClanTV 37
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos2619
• Stunt743
• TFBlade410
Upcoming Events
The PondCast
20h 52m
WardiTV Team League
22h 52m
Replay Cast
1d 10h
Replay Cast
2 days
CranKy Ducklings
2 days
RSL Revival
2 days
WardiTV Team League
2 days
uThermal 2v2 Circuit
3 days
BSL
3 days
Sparkling Tuna Cup
3 days
[ Show More ]
RSL Revival
3 days
WardiTV Team League
3 days
BSL
4 days
Replay Cast
4 days
Replay Cast
4 days
Wardi Open
4 days
Monday Night Weeklies
5 days
WardiTV Team League
5 days
GSL
6 days
Liquipedia Results

Completed

Spring Cup 2026
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
BSL Season 22
RSL Revival: Season 4
Nations Cup 2026
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

CSL Elite League 2026
ASL Season 21
Acropolis #4 - TS6
Acropolis #4
IPSL Spring 2026
CSLAN 4
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
NationLESS Cup
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
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 © 2026 TLnet. All Rights Reserved.