Closed mvillarejo closed 9 years ago
c'mon guys... Does anyone wants to 'Divide and rule' ?
I m ready to help you How can we proceed?
some information about Leagues
("80", "A. Bundesliga"), ("65", "Airtricity League"), ("351", "A - League"), ("56", "Allsvenskan"), ("13", "Barclays Premier League"), ("19", "Bundesliga"), ("20", "Bundesliga 2"), ("10", "Eredivisie"), ("63", "Hellas Liga"), ("83", "K-League"), ("54", "Liga Adelante"), ("53", "Liga BBVA"), ("7", "Liga do Brasil"), ("341", "MX Liga"), ("308", "Portuguesa Liga"), ("16", "Ligue 1"), ("17", "Ligue 2"), ("39", "MLS"), ("14", "npower Championship"), ("60", "npower League 1"), ("61", "npower League 2"), ("66", "Polska Liga"), ("353", "Primera Liga"), ("4", "Pro League"), ("189", "Raiffeisen SL"), ("67", "Russian League"), ("350", "Saudi Pro League"), ("31", "Serie A"), ("32", "Serie B"), ("347", "South African FL"), ("371", "Scotland League"), ("50", "Scottish Prem"), ("1", "Superliga"), ("41", "Tippeligaen"), ("68", "TurkLig"), ("332", "Ukrayina Liha")
Some information about teams
IfkGoteborg("319"), IfkNorrkoping("702"), IkStart("1524"), IncheonUnitedFc("110765"), Inter("44"), Internacional("1048"), InvernessCaledonianThistle("620"), IpswichTown("94"), JagielloniaBialystok("110745"), JaguaresdeChiapas("110151"), JejuUnitedFc("1478"), JeonbukHyundaiMotors("1477"), JuveStabia("112124"), Juventus("45"), KaizerChiefs("110929"), KalmarFf("1439"), KapfenbergerSv("15011"), KarlsruherSc("1832"), Kilmarnock("82"), KoronaKielce("111083"), Kortrijk("100081"), KrylyaSovetovSamara("100764"), KubanKrasnodar("110089"), LaSpezia("110741"), Lanciano("112020"), Lazio("46"), LbChateauroux("212"), LeHavreAc("1738"), LeMansFc("1739"), Lecce("347"), LechPoznan("873"), LechiaGdansk("111091"), LeedsUnited("8"), LegiaWarszawa("1871"), LeicesterCity("95"), LevanteUd("1853"), LeytonOrient("1958"), Lierse("239"), LillestromSk("299"), Liverpool("9"), Livorno("1844"), LksLodz("111085"), Lokeren("2007"), LokomotivMoskva("100765"), LosAngelesGalaxy("697"), LoscLille("65"), MacclesfieldTown("1959"), MalagaCf("573"), MalmoFf("320"), ManchesterCity("10"), ManchesterUnited("11"), Maritimo("1893"), Mechelen("110724"), MelbourneHeart("112224"), MelbourneVictory("111397"), Middlesbrough("12"), Milan("47"), Millwall("97"), MiltonKeynesDons("1798"), MjallbyAif("112072"), Modena("1744"), MoldeFk("417"), MonarcasMorelia("1028"), Monterrey("1032"), MontpellierSc("70"), MontrealImpact("111139"), MordovSaransk("110106"), Morecambe("357"), MoreiraConegos("1900"), Moreirense("1900"), Motherwell("83"), MsvDuisburg("1825"), NRecife("111050"), NacBreda("1904"), Najran("112395"), Napoli("48"), NasticdeTarragona("15019"), Nec("1910"), NeuchatelXamax("435"), NewEnglandRevolution("691"), NewYorkRedBulls("689"), NewcastleUnited("13"), NewcastleUnitedJets("111398"), NimesOlympique("224"), NorthamptonTown("1930"), NorwichCity("1792"), NottinghamForest("14"), NottsCounty("1937"), Novara("112225"), OddGrenland("1456"), OdenseBk("272"), OgcNice("72"), OldhamAthletic("1920"), Olhanense("111540"), Olympiakos("280"), OlympiquedeMarseille("219"), OlympiqueLyonnais("66"), OrebroSk("705"), OrlandoPirates("110930"), OudHeverleeLeuven("100087"), OxfordUnited("1951"), PCampinas("111043"), Pachuca("110147"), PacosdeFerreira("1892"), Padova("110912"), Palermo("1843"), Palmeiras("383"), Panathinaikos("1884"), Paok("393"), ParisSaintGermain("73"), Parma("50"), PecZwolle("1914"), PerthGlory("111399"), Pescara("200"), PeterboroughUnited("1938"), PhiladelphiaUnion("112134"), PlymouthArgyle("1929"), PodbeskidzieBielskoBiala("111087"), PohangSteelers("1474"), PoloniaWarszawa("1570"), PortVale("1928"), PortlandTimbers("111140"), Portsmouth("1790"), Portuguesa("111292"), PrestonNorthEnd("1801"), Psv("247"), Puebla("110152"), QueensParkRangers("15"), Queretaro("110150"), RacingClubdeLens("64"), RacingdeSantander("456"), RandersFc("1786"), RapidWien("254"), RayoVallecano("480"), RcCeltadeVigo("450"), RcDeportivo("242"), RcRecreativo("571"), RcdEspanyol("452"), RcdMallorca("453"), Reading("1793"), RealBetisBalompie("449"), RealMadrid("243"), RealMurciaCf("1855"), RealSaltLake("111065"), RealSociedad("457"), RealSportingdeGijon("459"), RealValladolid("462"), RealZaragoza("244"), RedBullSalzburg("191"), Reggina("203"), RioAve("744"), RioAveFc("744"), RkcWaalwijk("1905"), RmCastilla("110710"), Rochdale("1955"), RodaJcKerkrade("1902"), Roma("52"), RosenborgBk("298"), RossCounty("631"), RotherhamUnited("1797"), RubinKazan("110227"), RuchChorzow("874"), SRecife("111057"), Sampdoria("1837"), SanJoseEarthquakes("111928"), SanLuis("110149"), SandnesUlf("112374"), SangjuSangmuPhoenixFc("2055"), Santos("1053"), SantosLaguna("110144"), SaoPaulo("598"), Sassuolo("111974"), ScBastia("58"), ScBeiraMar("1897"), ScBraga("1896"), ScFreiburg("25"), ScHeerenveen("1913"), ScOlhanense("111540"), ScPaderborn("10030"), ScWienerNeustadt("111373"), ScunthorpeUnited("1949"), SdHuesca("110839"), SdPonferradina("2023"), SeattleSounders("111144"), SeongnamIlhwaChunma("981"), ServetteFc("324"), SevillaFc("481"), ShamrockRovers("306"), SheffieldUnited("1794"), SheffieldWednesday("1807"), Shelbourne("834"), ShrewsburyTown("127"), Siena("1838"), SilkeborgIf("270"), SkBrann("919"), SlBenfica("234"), SlaskWroclaw("111092"), SligoRovers("563"), SmCaen("210"), Snderjyske("1447"), SogndalFotball("1465"), Southampton("17"), SouthendUnited("1954"), SpartakMoskva("100767"), SpartakNalchik("110103"), SportingCp("237"), SportingKc("696"), SportingLisbon("237"), SpvggGreutherFrth("165"), SsvJahn("543"), StJohnstone("100804"), StMirren("100805"), StPatricksAthletic("423"), StabaekFotball("917"), StadeBrestois("378"), StadedeReims("379"), StadeLavallois("1814"), StadeRennais("74"), Standard("232"), Stevenage("361"), StokeCity("1806"), StromsgodsetToppfotball("922"), SturmGraz("209"), Sunderland("106"), SuwonSamsungBluewings("983"), SvMattersburg("1785"), SvRied("780"), SvSandhausen("110178"), SwanseaCity("1960"), SwindonTown("1934"), SydneyFc("111400"), SyrianskaFc("112267"), Szczecin("110746"), TerekGrozny("110109"), Terni("570"), TigresUanl("1970"), Toluca("1882"), TomTomsk("110233"), Torino("54"), TorontoFc("111651"), TorquayUnited("1946"), TottenhamHotspur("18"), ToulouseFc("1809"), ToursFc("110326"), TranmereRovers("15048"), TromsoIl("418"), Tsv1860Munchen("33"), Ucd("111132"), Unam("1881"), UdAlmeria("1861"), UdLasPalmas("472"), Udinese("55"), UlsanHyundaiFc("1473"), UniaoDesportivadeLeiria("1895"), UsBoulogne("111376"), ValenciaCf("461"), ValenciennesFc("110456"), ValerengaFotball("920"), VancouverWhitecaps("101112"), Varese("112237"), VascodaGama("569"), Vercelli("112398"), Verona("206"), VfBStuttgart("36"), VfLBochum("160"), VfLWolfsburg("175"), VfRAalen("550"), Vicenza("1847"), VikingFk("300"), VillarrealB("110902"), VillarrealCf("483"), Vitesse("1909"), VitoriaGuimaraes("1887"), VitoriaSetubal("665"), VvvVenlo("100651"), WaaslandBeveren("110913"), WackerInnsbruck("2045"), Walsall("1803"), WanderersFc("112427"), Waregem("15005"), Watford("1795"), WellingtonPhoenix("111766"), WerderBremen("38"), WestBromwichAlbion("109"), WestHamUnited("19"), WidzewLodz("301"), WiganAthletic("1917"), WillemIi("1907"), WislaKrakow("1873"), WolfsbergerAc("111822"), WolverhamptonWanderers("110"), WycombeWanderers("1933"), XerezCd("1742"), XoloitzcuintlesdeTijuana("111678"), YeovilTown("346"), YorkCity("1948"), ZaglebieLubin("110749"), ZenitStPetersburg("100769")
Wow! excellent job @Innursery!! really good!! @oczkers wondering if we should include these details in a dict object like:
league = {
80: "A. Bundesliga",
65: "Airtricity League",
351: "A - League",
56: "Allsvenskan",
13: "Barclays Premier League",
19: "Bundesliga",
20: "Bundesliga 2",
10: "Eredivisie",
63: "Hellas Liga",
83: "K-League",
54: "Liga Adelante",
53: "Liga BBVA",
7: "Liga do Brasil",
341: "MX Liga",
308: "Portuguesa Liga",
16: "Ligue 1",
17: "Ligue 2",
39: "MLS",
14: "npower Championship",
60: "npower League 1",
61: "npower League 2",
66: "Polska Liga",
353: "Primera Liga",
4: "Pro League",
189: "Raiffeisen SL",
67: "Russian League",
350: "Saudi Pro League",
31: "Serie A",
32: "Serie B",
347: "South African FL",
371: "Scotland League",
50: "Scottish Prem",
1: "Superliga",
41: "Tippeligaen",
68: "TurkLig",
332: "Ukrayina Liha"
}
and use it like:
In [5]: league[53]
Out[5]: 'Liga BBVA'
Regards!
Sure, how did you mapped league/nation id with name?
@Innursery I would like to add new method/function that generates leagues/nations/teams (and maybe players later) dicts automatically but i'm not sure how did You mapped numbers with text
Hello has anyone spent some time matching names with IDs for: nations:
Leagues
Teams
It'll be much appreciated if you save me a couple of hours...
Cheers.