Chat Threads > Rankings Forum

Live Rankings/Scoring (Research)

(1/8) > >>

masterclass:
Live Rankings Research thread.
Started to investigate various ways to retrieve live rankings better in an automated fashion.
For example, to get Futures results.

Marv, you are welcome to please explain your needs and requirements further.

I saw the ITF page from where you are trying to retrieve results and it is not straight forward due to the results being gathered and displayed in a flash application. The HTML page calls the flash immediately, and the page is all flash :)

We will have to explore the ways and means to try and get at the data.

Respectfully,
masterclass

Slasher1985:
Well, here is the solution, sir John. Although, it was not easy. The page loads the following feed:

http://scores.itftennis.com/feed.php?type=days&from=1368392400000&to=1368478800000&key=a017c9d5e6d127b073e6db56fb5f0be7&language=en&config=9651&bookid=8640&phrasesid=&clientid=597&mc=3&c=2

Using that feed, I was able to identify the tournaments and the matches being played. The from= and to= from the address are the UNIX timestamps you want to load matches between. For instance, I was able to identify the following matches from the Argentine futures tournament:


--- Code: ---<t i="25862" u="0" n="ARGENTINA F6 FUTURES" c="ar" a3="ARG" a3o="ARG" s="100000" g="1" gc="1" b="3" ei="1951" eg="0" t="1" pm="10000$">
<m b="3849241"    lu="0" mc="0" cs="0" pp="1" iv="1"><d>1368457200</d>
<t1 i="5438199" u="57289" r="484" c="BOL" a2="bo"  sc="0" sx="0">Dellien, Hugo</t1>
<t2 i="5419669" u="42691" r="787" c="ARG" a2="ar"  sc="0" sx="0">Ortiz, Juan Pablo</t2>
<s c="0">Not started</s><w>0</w>
</m>
<m b="3849243"    lu="0" mc="0" cs="0" pp="1" iv="1"><d>1368457200</d>
<t1 i="5719844" u="54467" r="631" c="ARG" a2="ar"  sc="0" sx="0">Perez Mota, Mauricio</t1>
<t2 i="5911965" u="66086" r="740" c="ARG" a2="ar"  sc="0" sx="0">Kicker, Nicolas</t2>
<s c="0">Not started</s><w>0</w>
</m>
<m b="3849237"    lu="0" mc="0" cs="0" pp="1" iv="1"><d>1368457200</d>
<t1 i="1452604" u="32526" r="399" c="CHI" a2="cl"  sc="0" sx="0">Saavedra-Corvalan, Cristobal</t1>
<t2 i="5719966" u="54573" r="626" c="ARG" a2="ar"  sc="0" sx="0">Coria, Federico</t2>
<s c="0">Not started</s><w>0</w>
</m>
<m b="3849245"    lu="0" mc="0" cs="0" pp="1" iv="1"><d>1368457200</d>
<t1 i="5264095" u="38182" r="776" c="ECU" a2="ec"  sc="0" sx="0">Vivanco, Juan-Sebastian</t1>
<t2 i="655617" u="16740" r="366" c="ARG" a2="ar"  sc="0" sx="0">Amado, Juan-Pablo</t2>
<s c="0">Not started</s><w>0</w>
</m>
<m b="3849239"    lu="0" mc="0" cs="0" pp="1" iv="1"><d>1368462600</d>
<t1 i="5891993" u="65606" r="1126" c="ARG" a2="ar"  sc="0" sx="0">Agamenone, Franco</t1>
<t2 i="5720987" u="52959" r="629" c="JPN" a2="jp"  sc="0" sx="0">Makiguchi, Ryusei</t2>
<s c="0">Not started</s><w>0</w>
</m>
</t>
<t i="25863" u="0" n="ARGENTINA F6 FUTURES" c="ar" a3="ARG" a3o="ARG" s="100000" g="1" gc="1" b="3" ei="1951" eg="0" t="2" pm="10000$">
<m b="3849293"    lu="0" mc="0" cs="0" r="2" pp="1" iv="1"><d>1368462600</d>
<t1 i="6293692" u="75819"  sc="0" sx="0">Cuevas M / Londero J I</t1>
<t2 i="6647586" u="98729"  sc="0" sx="0">Bas A E / Pellegrini J M</t2>
<dt>
<t k="h1" i="5269493" c="URU" a2="uy" sc="0" sx="0" />
<t k="h2" i="5630207" c="ARG" a2="ar" sc="0" sx="0" />
<t k="a2" i="6646642" c="ARG" a2="ar" sc="0" sx="0" />
<t k="a1" i="6647699" c="ARG" a2="ar" sc="0" sx="0" />
</dt>
<s c="0">Not started</s><w>0</w>
</m>
</t>
--- End code ---

I have enough data here for now to start creating an automated procedure that will gather the data needed to live update Futures results into the rankings. Also, this is the key to introduce live scoring to Futures matches into T4U, so I guess Scott may want to see this in detail. :king:

EDIT: That link is metadata from xml, not a specific website, so your browser will either not show anything or show an error. You must see the source code to gather the data.

masterclass:
Very good start Sir Marv!  Now I assume you just want completed matches, and not ones that have not started or are in progress, correct?

Respectfully,
masterclass

Slasher1985:

--- Quote from: masterclass on May 13, 2013, 05:04:05 AM ---Very good start Sir Marv!  Now I assume you just want completed matches, and not ones that have not started or are in progress, correct?

Respectfully,
masterclass

--- End quote ---

Yes indeed, sir John. So those would be the ones having this tag <s c="100">Ended</s> in their midst. Then the score:

<s t="period1"><t1>6</t1><t2>4</t2>
<s t="period2"><t1>2</t1><t2>6</t2>
<s t="period3"><t1>5</t1><t2>7</t2>

masterclass:
Ideally, one would be able to pass in the proper parameters into the query string to restrict the data returned from the server to what you want.
But if that's not possible, then another way to do that would be using xpath to filter the XML data as it is returned.
Do you know how to do that?

Respectfully,
masterclass

Navigation

[0] Message Index

[#] Next page

Go to full version