If smiley can't find his script, here's one way to do it:
- scrape the ladder team IDs of everyone (
https://www.warlight.net/LadderTeams?ID=0&Offset=0) on whatever ladder you're interested in (just increment the offset parameter by 50 and iterate through the ladder rankings using something like a while loop until you reach a page where there's no teams- e.g., like on this page:
https://www.warlight.net/LadderTeams?ID=0&Offset=42000)
- now that you have a list of team ID's, just go to each team page (e.g.,
https://www.warlight.net/LadderTeam?LadderTeamID=4992)
- you'll notice that there's a graph of rating history and rank history at the bottom. These are both exposed in the page HTML as an array of arrays; you can trivially extract this and it'll look something like this (right click and "View source" so you can see where this is in the code and come up with ways to extract it):
Points: [[0,181,1346],[1,198,1305],[2,189,1329],[3,181,1357],[4,180,1366],[5,178,1390],[6,169,1417],[7,165,1447],[8,163,1457],[9,169,1433],[10,182,1381],[11,180,1383],[12,179,1395],[13,186,1374],[14,184,1388],[15,179,1387],[16,180,1385],[17,182,1376],[18,181,1377],[19,182,1375],[20,182,1379],[21,175,1384],[22,184,1379],[23,179,1379],[24,183,1378],[25,183,1381],[26,187,1369],[27,185,1374],[28,182,1377],[29,179,1387],[30,182,1384],[31,182,1388],[32,183,1395],[33,177,1400],[34,173,1395],[35,174,1400],[36,173,1402],[37,168,1408],[38,164,1410],[39,165,1407],[40,172,1408],[41,171,1417],[42,171,1412],[43,167,1415],[44,164,1428],[46,158,1432],[47,155,1436],[48,153,1439],[49,150,1438],[50,150,1439],[51,149,1444],[52,149,1449],[53,152,1446],[54,150,1440],[55,152,1435],[56,151,1445],[57,153,1449],[58,143,1450],[59,140,1450],[60,143,1448],[61,137,1449],[62,140,1453],[63,146,1452],[64,147,1453],[65,154,1442],[66,155,1446],[67,156,1448],[68,153,1438],[69,149,1445],[70,151,1448],[71,150,1449],[72,148,1453],[73,149,1456],[74,148,1455],[75,147,1457],[76,149,1454],[78,155,1455],[78,161,1453],[79,158,1449],[80,158,1444],[81,155,1447],[82,154,1450],[83,154,1454],[84,156,1452],[85,155,1456],[86,154,1459],[87,157,1462],[88,159,1471],[89,161,1462],[90,163,1463],[91,156,1467],[92,155,1480],[93,157,1480],[94,160,1479],[95,151,1482],[96,154,1479],[97,152,1477],[98,150,1480],[99,154,1474],[100,148,1484],[101,148,1495],[102,147,1508],[103,148,1503],[104,144,1512],[105,142,1520],[106,147,1519],[107,141,1529],[108,142,1531],[110,144,1539],[110,137,1543],[111,135,1547],[112,134,1543],[113,135,1548],[114,128,1556],[115,123,1560],[116,124,1562],[117,123,1560],[118,122,1567],[119,123,1564],[120,125,1562],[121,120,1569],[122,123,1566],[123,124,1570],[124,126,1572],[125,127,1574],[126,127,1578],[127,127,1578],[129,124,1573],[130,125,1572],[132,129,1576],[132,127,1578],[133,122,1583],[134,123,1580],[136,122,1576],[136,123,1577],[137,121,1583],[138,118,1581],[139,120,1581],[140,113,1591],[141,115,1593],[142,117,1593],[143,116,1595],[144,115,1591],[145,115,1593],[146,114,1591],[147,116,1589],[148,114,1590],[149,115,1593],[150,112,1598],[151,113,1600],[152,110,1609],[153,110,1613],[154,108,1614],[155,106,1615],[156,105,1615],[157,107,1615],[158,106,1619],[159,100,1618],[160,103,1617],[161,100,1623],[162,103,1620],[163,106,1615],[164,106,1621],[165,104,1626],[166,100,1627],[167,100,1631],[168,101,1634],[169,101,1634],[170,102,1634],[171,104,1635],[172,103,1636],[173,103,1641],[174,105,1641],[175,108,1643],[176,108,1649],[177,106,1650],[178,107,1651],[179,107,1645],[180,107,1648],[181,107,1648],[182,106,1648],[184,101,1652],[184,100,1652],[185,108,1646],[186,104,1648],[187,106,1645],[188,106,1644],[189,106,1645],[190,109,1648],[191,109,1647],[192,108,1649],[193,107,1649],[194,106,1648],[195,107,1650],[196,105,1653],[197,103,1650],[198,102,1652],[199,102,1652],[200,103,1652],[201,101,1652],[202,101,1653],[203,100,1657],[204,99,1657],[205,99,1659],[206,97,1663],[207,95,1671],[208,96,1672],[209,97,1669],[210,97,1667],[211,98,1664],[212,100,1663],[213,102,1666],[214,97,1668],[215,97,1671],[216,97,1675],[217,98,1684],[218,96,1683],[219,95,1686],[220,95,1696],[221,92,1694],[222,93,1693],[223,94,1692],[224,92,1692],[225,93,1694],[226,92,1697],[227,90,1696],[228,88,1703],[229,92,1703],[230,93,1705],[231,87,1710],[232,87,1714],[233,87,1714],[234,87,1720],[235,87,1715],[236,88,1722],[237,85,1725],[238,86,1723],[239,87,1726],[240,86,1725],[241,85,1728],[242,86,1733],[243,86,1731],[244,91,1725],[245,91,1726],[246,87,1727],[247,85,1729],[248,77,1732],[249,74,1739],[250,74,1735],[251,72,1741],[252,73,1742],[253,72,1753],[254,74,1751],[255,72,1754],[256,72,1756],[257,70,1761],[258,66,1768],[259,63,1768],[260,61,1772],[261,62,1776],[262,61,1778],[263,62,1773],[264,61,1778],[265,60,1774],[266,59,1774],[267,59,1773],[268,59,1774],[269,59,1781],[270,60,1782],[271,60,1785],[272,59,1793],[273,58,1792],[274,58,1796],[275,57,1791],[276,59,1789],[277,57,1794],[278,55,1791],[279,57,1786],[280,55,1790],[281,54,1795],[282,54,1799],[283,57,1799],[284,57,1799],[285,54,1794],[286,54,1795],[287,54,1800],[288,53,1802],[289,55,1798],[290,53,1804],[291,52,1811],[292,51,1812],[293,56,1815],[294,54,1818],[295,54,1823],[296,52,1824],[297,55,1823],[298,54,1822],[299,53,1823],[300,52,1825],[301,51,1822],[302,55,1817],[303,58,1816],[304,58,1813],[305,57,1815],[306,60,1816],[307,59,1815],[308,57,1820],[309,56,1819],[310,59,1817],[311,59,1811],[312,59,1807],[313,60,1807],[314,63,1808],[315,63,1813],[316,61,1818],[317,64,1814],[318,64,1814],[319,64,1814],[320,65,1811],[321,61,1816],[322,60,1816],[323,62,1816],[324,64,1814],[325,65,1803],[326,63,1806],[327,62,1803],[328,63,1801],[329,63,1799],[330,65,1802],[331,63,1805],[332,63,1809],[333,61,1810],[334,62,1812],[335,66,1813],[336,63,1815],[337,63,1819],[338,62,1826],[339,61,1826],[340,58,1829],[341,57,1837],[342,57,1834],[343,58,1832],[344,58,1830],[345,56,1838],[346,59,1838],[347,62,1837],[348,62,1835],[349,65,1833],[350,64,1836],[351,61,1842],[352,61,1843],[353,56,1851],[354,52,1854],[355,54,1855],[356,51,1856],[357,52,1857],[358,50,1861],[359,50,1865],[360,49,1862],[361,49,1865],[362,45,1873],[363,42,1878],[364,42,1880],[365,43,1876],[366,48,1874],[367,46,1880],[368,49,1878],[369,46,1885],[370,46,1885],[371,46,1880],[372,45,1879],[373,45,1880],[374,45,1878],[375,46,1878],[376,43,1876],[377,43,1874],[378,42,1874],[379,41,1875],[380,41,1877],[381,38,1879],[382,41,1880],[383,43,1874],[384,44,1870],[385,45,1867],[386,46,1869],[387,44,1874],[388,43,1870],[389,40,1868],[390,44,1860],[391,44,1861],[392,42,1865],[393,46,1855],[394,44,1857],[395,43,1862],[396,43,1865],[397,42,1864],[398,42,1862],[399,41,1864],[400,42,1866],[401,40,1867],[402,40,1871],[403,43,1866],[404,41,1865],[405,44,1863],[406,42,1865],[407,44,1862],[408,43,1860],[409,42,1862],[410,44,1854],[411,47,1856],[412,42,1857],[413,42,1855],[414,38,1864],[415,37,1863],[416,36,1859],[417,39,1858],[418,38,1853],[419,34,1856],[420,35,1857],[421,35,1853],[422,36,1858],[423,34,1857],[424,34,1857],[425,38,1856],[426,36,1857],[427,35,1866],[428,34,1865],[431,35,1860],[431,35,1861],[432,36,1862],[433,35,1854],[434,36,1854],[435,38,1850],[436,36,1856],[437,34,1854],[438,33,1858],[439,33,1854],[440,33,1860],[441,33,1861],[442,32,1865],[443,33,1865],[444,35,1862],[445,36,1858],[446,36,1860],[447,35,1860],[448,34,1860],[449,34,1859],[450,33,1865],[451,33,1866],[452,33,1861],[453,34,1855],[454,32,1865],[455,26,1873],[456,29,1872],[457,29,1870],[458,30,1868],[459,32,1866],[460,30,1866],[461,31,1866],[462,33,1865],[463,29,1877],[464,27,1885],[465,28,1890],[466,29,1888],[467,31,1891],[468,31,1886],[469,34,1889],[470,34,1893],[471,34,1890],[472,32,1892],[473,33,1894],[474,36,1888],[475,35,1886],[476,34,1888],[477,32,1896],[478,29,1901],[479,29,1903],[480,29,1904],[481,30,1908],[484,29,1913],[485,31,1919],[486,32,1916],[487,29,1919],[488,27,1919],[489,25,1925],[491,25,1929],[491,25,1931],[492,26,1933],[493,28,1929],[494,27,1934],[495,25,1933],[496,30,1931],[498,31,1919],[498,31,1919],[499,33,1921],[500,34,1924],[501,33,1920],[502,34,1913],[503,33,1913],[505,33,1908],[506,34,1905],[507,34,1902],[508,34,1898],[509,34,1896],[510,31,1894],[511,30,1894],[512,29,1893],[513,27,1892],[514,29,1888],[515,28,1886],[516,27,1885],[517,26,1890],[518,26,1895],[519,27,1887],[520,30,1883],[521,30,1876],[522,30,1874],[523,28,1872],[525,30,1874],[525,30,1874],[526,29,1875],[527,29,1881],[528,32,1884],[529,31,1879],[530,30,1882],[531,32,1878],[532,33,1878],[533,32,1881],[534,31,1884],[535,31,1886],[536,32,1883],[537,31,1885],[538,30,1883],[539,29,1884],[540,30,1884],[541,29,1881],[542,27,1894],[543,27,1893],[544,28,1890],[545,28,1899],[546,29,1897],[547,27,1895],[548,26,1897],[549,26,1899],[550,29,1895],[551,28,1896],[552,29,1890],]
There's another exposed parameter called StartDate. Extract that as well:
StartDate: new Date(1399249849541),
It's a Unix timestamp (number of milliseconds passed since 1/1/1970) and you can convert it into an actual date, probably using a standard library.
The arrays within the Points array are formatted as such:
[index, rank, rating]
index is the # of days since the start date
A naive solution would just be to iterate through each ladder team you've extracted, determine whether/when they were ranked #1 on the ladder, and store any instance where they jumped from a non-1 rank to rank #1 in a separate array of tuples (structured something like (startDate, titleHolder)) that you can also keep sorted. So now you're tracking the start of every #1 reign in an array of tuples containing both the start date and the title holder. Once you're done iterating through the ladder teams, you have all the data you're looking for (make sure you tracked some type of team "name"- not just the ID- so you can have output decipherable in English) and can just trivially parse it and generate some output.
If someone wants to actually implement this, I'd recommend checking out Scrapy (a Python web scraper library) or just using GET requests and string processing on the HTML output (in any language).
Edited 5/9/2016 00:19:46