Web results to CSV
The first two files are bash shell scripts, and they depend on curl for
downloading html pages from TopCoder. If you are running linux/unix, you
probably have everything you need already. If you are running Windows, you can
get a bash shell and curl by using Cygwin.
- getCookie logs into the TopCoder website and
records the cookie you need to view detailed marathon match results. You will
need to put your username and password in this script.
- getResults takes three parameters - two numbers,
rd and pm which you get from the URL of the detailed results page at TopCoder,
and the filename for the results to go in. It uses getCookie and paresPage
internally.
- parsePage.cpp takes the name of the csv file
as an argument and expects an additional html page from stdin. It loads the
csv file, and appends data to the rows if it gets more data for the same
handles, or adds new rows if it gets data for new handles. The html parsing
happens here and is ugly. If TopCoder changes the format of the results
page, this will need updated.
Ratings
Here are ratings that correspond with TopCoder's
ratings. The paragraph below and the ratings following it are now obsolete.
I have computed ratings for the marathon matches, since there are no official
ratings. These use the normal TopCoder rating formula.