• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 09:43
CEST 15:43
KST 22:43
  • 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
Serral wins EWC 202531Tournament Spotlight: FEL Cracow 20259Power Rank - Esports World Cup 202580RSL Season 1 - Final Week9[ASL19] Finals Recap: Standing Tall15
Community News
[BSL 2025] H2 - Team Wars, Weeklies & SB Ladder7EWC 2025 - Replay Pack4Google Play ASL (Season 20) Announced38BSL Team Wars - Bonyth, Dewalt, Hawk & Sziky teams10Weekly Cups (July 14-20): Final Check-up0
StarCraft 2
General
Serral wins EWC 2025 The GOAT ranking of GOAT rankings EWC 2025 - Replay Pack #1: Maru - Greatest Players of All Time Greatest Players of All Time: 2025 Update
Tourneys
Sea Duckling Open (Global, Bronze-Diamond) TaeJa vs Creator Bo7 SC Evo Showmatch Sparkling Tuna Cup - Weekly Open Tournament FEL Cracov 2025 (July 27) - $10,000 live event Esports World Cup 2025
Strategy
How did i lose this ZvP, whats the proper response
Custom Maps
External Content
Mutation # 484 Magnetic Pull Mutation #239 Bad Weather Mutation # 483 Kill Bot Wars Mutation # 482 Wheel of Misfortune
Brood War
General
[BSL 2025] H2 - Team Wars, Weeklies & SB Ladder Flash Announces (and Retracts) Hiatus From ASL BW General Discussion Brood War web app to calculate unit interactions Google Play ASL (Season 20) Announced
Tourneys
Small VOD Thread 2.0 [Megathread] Daily Proleagues [BSL] Non-Korean Championship - Final weekend [BSL20] Non-Korean Championship 4x BSL + 4x China
Strategy
Does 1 second matter in StarCraft? Simple Questions, Simple Answers Muta micro map competition [G] Mineral Boosting
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Beyond All Reason Total Annihilation Server - TAForever [MMORPG] Tree of Savior (Successor of Ragnarok)
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 Stop Killing Games - European Citizens Initiative Things Aren’t Peaceful in Palestine UK Politics Mega-thread Canadian Politics Mega-thread
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread [\m/] Heavy Metal Thread Movie Discussion! [Manga] One Piece Korean Music Discussion
Sports
2024 - 2025 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion
World Cup 2022
Tech Support
Gtx660 graphics card replacement Installation of Windows 10 suck at "just a moment" Computer Build, Upgrade & Buying Resource Thread
TL Community
TeamLiquid Team Shirt On Sale The Automated Ban List
Blogs
The Link Between Fitness and…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Socialism Anyone?
GreenHorizons
Eight Anniversary as a TL…
Mizenhauer
Customize Sidebar...

Website Feedback

Closed Threads



Active: 680 users

Fish Ladder under your fingers

Forum Index > BW General
Post a Reply
Normal
letian
Profile Blog Joined May 2010
Germany4221 Posts
Last Edited: 2016-06-05 11:54:27
March 23 2016 19:21 GMT
#1
I am too lazy to check fish server nicknames with corresponding liquipedia table. So, I wrote a python script that does exactly that

Here, take a look at how it works.

Let's say I want to check current fish server ranking.

[image loading]

You want to see all the fish nicknames and corresponding stats for the given BW player id.

[image loading]

It works the other way around, give fish server nickname to see which BW player id it belongs to.

[image loading]

Here is a github page.
Direct link to script: https://raw.githubusercontent.com/tastyminerals/fish_ladder/master/fish_ladder.py

UPDATED 05.06.2016:
Added fuzzy matching for console version.
Now you don't need to know the correct name of the player.

To get real id when you don't remember the correct spelling of the fish id do:
./fish_ladder.py -fr ssaeggi
It's 75% EffOrt!

To get all fish ids if you don't remember the correct spelling of the real id do:
./fish_ladder.py -ff falsh
> It is 80% Flash!

> TimeNa --> Flash
> FlaSh --> Flash
> eros_quality --> Flash

Installation:
If you are on Windows: install Python2.7 from here.

Put the script in any folder you like. Let's say, inside C:\Python27\ itself.
Open up cmd, go to this folder with: cd C:\Python27 and first run
pip install requests
pip install beautifulsoup4
pip install fuzzywuzzy
pip install python-Levenshtein


After pip installs these libraries you can run the script:
python fish_ladder.py

Other commands:
python fish_ladder.py -pls <-- gives alphabetically sorted list of all known BW players
python fish_ladder.py -t 10 <-- gives you top 10 fish ladder ranking with fish ids revealed.
python fish_ladder.py -p Sea <-- gives you all fish ids for "Sea" and also stats for each fish id.
python fish_ladder.py -p moksaeggi <-- tells you who is it given the fish id, can be lowecase or uppercase.
python fish_ladder.py -u <-- fetch the recent stats and player names from fish and tl.wiki.

The simplest GUI version, for all those who prefer a mouse. To run, just double-click on the file.

[image loading]
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2016-03-23 20:06:07
March 23 2016 19:51 GMT
#2
Nice! How did you convert data into json? Was it just BeautifulSoup?
toriak
Profile Joined December 2008
Slovakia477 Posts
March 23 2016 20:09 GMT
#3
nice
does it auto update ?
shared IDs might lead to crashes tho
letian
Profile Blog Joined May 2010
Germany4221 Posts
Last Edited: 2016-03-23 20:18:16
March 23 2016 20:17 GMT
#4
On March 24 2016 04:51 Shield wrote:
Nice! How did you convert data into json? Was it just BeautifulSoup?

Json can save/load python dict without any problems json.dump(dictionary).

Yes, I use BeautifulSoup to scap data from web pages and create a two dictionaries that are dumped with json into json files.
This is done to speed up things. When run first time, the script queries tl.wiki and fish server web pages, creates dictionaries and saves them as jsons on disk. Next time when you start it, it uses these files.
In order to update the files you need to python2 fish_ladder.py -u.
letian
Profile Blog Joined May 2010
Germany4221 Posts
Last Edited: 2016-03-23 20:24:07
March 23 2016 20:22 GMT
#5
On March 24 2016 05:09 toriak wrote:
nice
does it auto update ?
shared IDs might lead to crashes tho

No, you need to do it manually python2 fish_ladder.py -u because quering web sites each time takes time, especially fish server, even a few secs is annoying.

Yes, if somebody decides to change tl.wiki page or fish page and renames html elements the script will surely crash. But as long as the player lists are updated with new entries only, it will work just all right. The more nicknames we have on tl.wiki the better fish ladder will be decoded. Having saved jsons on disk, protects you from pulling malformed data after all.
Shinrei
Profile Joined February 2007
United States237 Posts
March 23 2016 21:07 GMT
#6
Eternal.Pose is aka Sirius..`Bishop. He was that Sbenu team Terran amateur.
=^.^=
letian
Profile Blog Joined May 2010
Germany4221 Posts
March 23 2016 21:12 GMT
#7
On March 24 2016 06:07 Shinrei wrote:
Eternal.Pose is aka Sirius..`Bishop. He was that Sbenu team Terran amateur.

You can add him to liquipedia table and after "-u" update "eternal.pose" will be decoded as "Sirius".
toriak
Profile Joined December 2008
Slovakia477 Posts
March 24 2016 06:52 GMT
#8
where to write that commands ?
do i need to use python ?
Scarbo
Profile Joined January 2012
294 Posts
March 24 2016 07:44 GMT
#9
sweet work man, thanks!
letian
Profile Blog Joined May 2010
Germany4221 Posts
Last Edited: 2016-03-24 08:20:06
March 24 2016 08:16 GMT
#10
On March 24 2016 15:52 toriak wrote:
where to write that commands ?
do i need to use python ?

Yes, if you are on Windows: install Python2.7 from here.

Put the script in any folder you like. Let's say, inside C:\Python27\ itself.
Open up cmd, go to this folder with: cd C:\Python27 and first run
pip install requests
pip install beautifulsoup4

After pip installs these libraries you can run the script:
python fish_ladder.py

Other commands:
python fish_ladder.py -pls <-- gives alphabetically sorted list of all known BW players
python fish_ladder.py -t 10 <-- gives you top 10 fish ladder ranking with fish ids revealed.
python fish_ladder.py -p Sea <-- gives you all fish ids for "Sea" and also stats for each fish id.
python fish_ladder.py -p moksaeggi <-- tells you who is it given the fish id, can be lowecase or uppercase.
python fish_ladder.py -u <-- fetch the recent stats and player names from fish and tl.wiki.
bGr.MetHiX
Profile Joined February 2011
Bulgaria511 Posts
March 24 2016 09:46 GMT
#11
soooo Last holds 5 of the top15 slots in Fish ?
Top50 GM EU Protoss from Bulgaria. Streaming with commentary : www.twitch.tv/hwbgmethix
iFU.spx
Profile Joined April 2011
Russian Federation369 Posts
March 24 2016 10:00 GMT
#12
very nice job!
LaStScan
Profile Joined May 2011
Korea (South)1289 Posts
March 24 2016 10:36 GMT
#13
I would recommend to use Google Docs(Spread Sheet).
Easy to excess for anyone. less difficulty of organizing players' aka and stats, and so on.

I also realized that Marcin Nowak did this before on August 20th, 2015.
Updating this spread sheet every once a week sounds okay to me(a few people should have access with this changes).

If people would agree with this previous idea that had used, I'll make and do it for y'all.
Trying my best for ASL, ASTL
mca64Launcher_
Profile Joined June 2015
Poland629 Posts
March 24 2016 10:51 GMT
#14
i worked with soemthing similiar for iccup in the past. Idea was to check my opponent stats in a game. Like best rank with stats, and current stats (iccup only shows rank). This often works but not always, you can check it in 1/1 games , after 2 minutes in a game with just /stat command. Could you do something similiar for a iccup?
letian
Profile Blog Joined May 2010
Germany4221 Posts
Last Edited: 2016-03-24 14:02:06
March 24 2016 13:58 GMT
#15
@LaStScan
Yes, for the sake of simplicity you can use google docs.
Google docs approach is good for fish id revealing only.
However, I want to have the latest info on each player and see what they were doing during the week by accessing fish ladder stats. Also, it is just faster than to look through the list.

@mca64Launcher_
If you need the same thing that fish_ladder.py does but for iccup then it is possible. I am not familiar how you can do this in the game though. And looks like this is what you mean.

I can write a GUI for the script but only if I am sure that there are enough ppl who will actually use it. Right now, scripts are good enough ;D
WightyCity
Profile Joined May 2011
Canada887 Posts
March 24 2016 14:56 GMT
#16
cool. Thanks!
90% watching it 8% talking about it and 2% playing it - sc2
mca64Launcher_
Profile Joined June 2015
Poland629 Posts
Last Edited: 2016-03-25 07:51:40
March 25 2016 07:49 GMT
#17
Problem with this is that you are using python. Users dont likes install extra stuff. Should be all just native, just click and use.
ne4aJIb
Profile Blog Joined July 2011
Russian Federation3209 Posts
March 25 2016 08:27 GMT
#18
python is a great map
Bisu,Best,Stork,Jangbi and Flash, Fantasy, Leta, Light and Jaedong, Hydra, Zero, Soulkey assemble in ACE now!
letian
Profile Blog Joined May 2010
Germany4221 Posts
Last Edited: 2016-03-25 08:50:09
March 25 2016 08:49 GMT
#19
On March 25 2016 16:49 mca64Launcher_ wrote:
Problem with this is that you are using python. Users dont likes install extra stuff. Should be all just native, just click and use.

Yes, unfortunately using scripts is still a skill of an advanced user (thank you Windows).
Python is as cross platform as possible these days. If you mean "exe" file, I am not really into that stuff, it just requires more work.
mca64Launcher_
Profile Joined June 2015
Poland629 Posts
March 25 2016 09:20 GMT
#20
i love Python map <3
mca64Launcher_
Profile Joined June 2015
Poland629 Posts
March 25 2016 09:23 GMT
#21
unfortunately using scripts is still a skill of an advanced user


hmm yes and no. Even i doesnt like using script, im too lazy. Simpler is always better for a human
oGoZenob
Profile Joined December 2011
France1503 Posts
March 25 2016 13:27 GMT
#22
man I love when people do scripts that allows me to be lazy
I like starcraft
letian
Profile Blog Joined May 2010
Germany4221 Posts
Last Edited: 2016-03-25 14:12:32
March 25 2016 14:07 GMT
#23
simplest GUI version, for all those who prefer a mouse. No highlighting or fancy styles, just plain text. Double-click it to run.

[image loading]
WinterViewbot420
Profile Blog Joined December 2015
345 Posts
March 25 2016 14:15 GMT
#24
I always forget Python 2 is still a thing
Konsumed
Profile Joined April 2010
United States30 Posts
Last Edited: 2016-03-28 05:28:36
March 28 2016 05:07 GMT
#25
Got the GUI version to work thanks this is nice when watching streams :D
letian
Profile Blog Joined May 2010
Germany4221 Posts
Last Edited: 2016-03-28 10:53:50
March 28 2016 10:48 GMT
#26
On March 25 2016 23:15 WinterViewbot420 wrote:
I always forget Python 2 is still a thing

Start all your endeavours with python 2 and only then migrate to python 3 should be included into python conventions.
letian
Profile Blog Joined May 2010
Germany4221 Posts
Last Edited: 2016-06-05 08:44:42
June 05 2016 08:43 GMT
#27
Unfortunately the script stopped working because
http://www.fishbattle.net/rank_ladder
started using captcha which requires starting up a browser and confirming that "I am not a robot" before you can see the actual ladder ranks
mca64Launcher_
Profile Joined June 2015
Poland629 Posts
June 05 2016 08:48 GMT
#28
so add this captcha window
letian
Profile Blog Joined May 2010
Germany4221 Posts
Last Edited: 2016-06-05 09:15:08
June 05 2016 09:14 GMT
#29
I have pushed a few fixes. Now, you can still look up the real player names. You can update the "fish id" -> "real id" table from tl wiki. Fish ladder updates are not available until they remove the captcha page

To update the "tlwiki.json" table do:
python2 fish_ladder.py -u


To look up the player real id do:
python2 fish_ladder.py -p [NeOx]92
> It's ZerO


To see the list of known player ids do:
python2 fish_ladder.py -pls
letian
Profile Blog Joined May 2010
Germany4221 Posts
June 05 2016 09:17 GMT
#30
On June 05 2016 17:48 mca64Launcher_ wrote:
so add this captcha window

Yes, it is possible but basically means starting up a browser :D
When I just need a fast script.
letian
Profile Blog Joined May 2010
Germany4221 Posts
June 05 2016 11:47 GMT
#31
Added fuzzy matching for console version.
Now you don't need to know the correct name of the player.

To get real id when you don't remember the correct spelling of the fish id do:
./fish_ladder.py -fr ssaeggi
It's 75% EffOrt!


To get all fish ids if you don't remember the correct spelling of the real id do:
./fish_ladder.py -ff falsh
> It is 80% Flash!

> TimeNa --> Flash
> FlaSh --> Flash
> eros_quality --> Flash

idegelchik
Profile Joined September 2012
Russian Federation382 Posts
Last Edited: 2016-06-05 13:05:45
June 05 2016 13:05 GMT
#32
python is a good BW map
mca64Launcher_
Profile Joined June 2015
Poland629 Posts
June 05 2016 13:13 GMT
#33
python best map ever
idegelchik
Profile Joined September 2012
Russian Federation382 Posts
June 05 2016 16:02 GMT
#34
python 2 is nono, python 1.3 is good
mca64Launcher_
Profile Joined June 2015
Poland629 Posts
June 05 2016 17:42 GMT
#35
On June 05 2016 18:17 letian wrote:
Show nested quote +
On June 05 2016 17:48 mca64Launcher_ wrote:
so add this captcha window

Yes, it is possible but basically means starting up a browser :D
When I just need a fast script.


Im pretty sure its possible without web browser
idegelchik
Profile Joined September 2012
Russian Federation382 Posts
June 05 2016 17:44 GMT
#36
no idea how bypass this type captcha without money
Normal
Please log in or register to reply.
Live Events Refresh
The PondCast
10:00
Episode 56
CranKy Ducklings66
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Harstem 515
mcanning 34
StarCraft: Brood War
Britney 37231
Bisu 3337
BeSt 2420
Flash 1543
Jaedong 1346
Barracks 950
EffOrt 943
ggaemo 768
Mini 509
firebathero 401
[ Show more ]
Soulkey 396
Larva 250
Last 210
Soma 110
hero 99
Mind 92
Snow 89
TY 87
ToSsGirL 86
Hyun 54
JYJ40
[sc1f]eonzerg 40
sSak 36
Movie 36
Free 36
Sea.KH 35
Sacsri 28
sorry 25
Yoon 23
Icarus 21
soO 19
Bale 11
Hm[arnc] 11
Terrorterran 8
sas.Sziky 7
IntoTheRainbow 5
ivOry 4
GuemChi 0
Dota 2
Gorgc3724
qojqva3500
XcaliburYe269
KheZu262
420jenkins234
League of Legends
Reynor91
Counter-Strike
ScreaM3567
byalli425
markeloff258
edward47
kRYSTAL_43
Heroes of the Storm
XaKoH 242
Other Games
singsing2321
B2W.Neo1054
hiko974
DeMusliM477
crisheroes434
Fuzer 291
Lowko206
oskar195
Happy175
Hui .166
QueenE47
rGuardiaN31
Organizations
StarCraft: Brood War
UltimateBattle 30
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• davetesta170
• StrangeGG 72
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 3676
• WagamamaTV464
League of Legends
• Jankos1093
Upcoming Events
Online Event
2h 17m
Wayne vs ArT
Strange vs Nicoract
Shameless vs GgMaChine
YoungYakov vs MilkiCow
OSC
4h 17m
Cham vs Bunny
ByuN vs TriGGeR
SHIN vs Krystianer
ShoWTimE vs Spirit
WardiTV European League
1d 2h
MaNa vs NightPhoenix
ByuN vs YoungYakov
ShoWTimE vs Nicoract
Harstem vs ArT
Korean StarCraft League
1d 13h
CranKy Ducklings
1d 20h
BSL20 Non-Korean Champi…
1d 22h
Mihu vs QiaoGege
Zhanhun vs Dewalt
Fengzi vs TBD
WardiTV European League
2 days
Online Event
2 days
Sparkling Tuna Cup
2 days
BSL20 Non-Korean Champi…
3 days
Bonyth vs TBD
[ Show More ]
WardiTV European League
3 days
Wardi Open
3 days
OSC
4 days
uThermal 2v2 Circuit
6 days
The PondCast
6 days
Liquipedia Results

Completed

BSL 20 Non-Korean Championship
FEL Cracow 2025
Underdog Cup #2

Ongoing

Copa Latinoamericana 4
Jiahua Invitational
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
CC Div. A S7
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025

Upcoming

BSL 21 Qualifiers
ASL Season 20: Qualifier #1
ASL Season 20: Qualifier #2
ASL Season 20
CSLPRO Chat StarLAN 3
BSL Season 21
RSL Revival: Season 2
Maestros of the Game
SEL Season 2 Championship
WardiTV Summer 2025
uThermal 2v2 Main Event
HCC Europe
Roobet Cup 2025
Yuqilin POB S2
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
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.