Since you are new, let us show you how Trendy works.

Close-button

Top 50 Cody players

  • Created by: Aurelien Queffurust
  • Last ran: about 17 hours ago.
  • Auto-run in: about 7 hours.
  • Created on: 27 Jul 2012

844

data points

Description:

This Trends shows the score of 50 top players. You can see how may players are above 2000 points , 5000 points ...

Recently Collected Data (last 5 of 844) Show All Data

Time Recorded (time1775) Data (data1775)
19 Dec 2014 08:30:12 [1809 1679 1666 1626 1610 1549 1410 1336 1312 1139 1121 1037 1000 9600 9285 9190 8920 8750 8620 8540 8370 8350 8125 7975 7935 7775 7630 7365 7190 7040 7030 6630 6355 6230 6080 6050 5870 5780 5755 5680 5190 5125 5050 4970 4790 4780 4725 4725 4540 4525]
18 Dec 2014 08:30:10 [1809 1679 1665 1626 1610 1549 1403 1336 1312 1139 1121 1037 1000 9670 9285 9190 8860 8700 8620 8540 8370 8350 8125 7975 7935 7775 7630 7365 7190 7040 7030 6630 6355 6230 6080 6050 5870 5780 5755 5680 5180 5125 5050 4970 4790 4780 4725 4725 4540 4525]
17 Dec 2014 08:30:11 [1809 1687 1662 1618 1610 1549 1400 1336 1312 1139 1121 1037 1000 9650 9265 9190 8850 8700 8620 8540 8370 8350 7975 7935 7775 7700 7595 7365 7190 7030 7030 6630 6355 6230 6080 6050 5870 5780 5755 5680 5180 5125 5050 4970 4790 4780 4725 4725 4540 4525]
16 Dec 2014 08:30:10 [1809 1672 1662 1618 1604 1549 1392 1336 1312 1139 1121 1037 1000 9510 9265 9190 8840 8700 8620 8540 8370 8350 7975 7935 7775 7595 7570 7365 7190 7030 7010 6630 6355 6230 6080 6050 5870 5780 5755 5680 5180 5125 5050 4970 4790 4780 4725 4725 4540 4525]
15 Dec 2014 08:30:11 [1809 1672 1658 1618 1604 1549 1388 1336 1312 1139 1121 1037 1000 9415 9265 9190 8830 8700 8610 8540 8370 8350 7975 7935 7775 7595 7550 7365 7190 7030 7000 6630 6355 6230 6080 6050 5870 5780 5755 5680 5180 5125 5050 4970 4790 4780 4725 4725 4540 4525]
% % % Example code added - Retrieve answer count on MATLAB Answers
% % 
% % url = 'http://www.mathworks.com/matlabcentral/cody/players';
% % html = urlread(url);
% % 
% % % FORMAT: 
% % % <a href="/matlabcentral/cody/players/33802-james" title="Score: 3310">
% % 
% % tk = regexp(html,'/matlabcentral/cody/players/(\d+).*?" title="Score: (\d+)"','tokens');
% % n = 50;
% % vals = zeros(2,n);
% % for i = 1:n
% %  
% %     score = str2num(tk{i}{2});
% %    
% %     vals(1,i) = score;
% % end
% % vals = vals(1:2:end)';
% % updatetrend(vals)



% as of 15-Nov-2012 (badges appear) :
url = 'http://www.mathworks.com/matlabcentral/cody/players';
html = urlread(url);

e=findstr('<span class=''sort_highlight''>',html);
for ii = 1 :50
scoring(ii) = str2double(html(e(ii)+29 :e(ii)+32));
end
updatetrend(scoring)
Tags:

    Add Tags


    1 comment

    J.R.! Menzinger about 1 year ago

    No, no, no!! I said it was fine as it was!! ;-)
    Now it is broken! :'-(
    Try this:
    % as of 15-Nov-2012 (badges appear) :
    url = 'http://www.mathworks.com/matlabcentral/cody/players';
    html = urlread(url);
    e = regexp(html, '^span class=''sort_highlight''v(\d*?)^/spanvScore','tokens');
    for ii = 1 :50
    scoring(ii) = str2double(e{ii}{1});
    end
    updatetrend(scoring)
    Note: on the regexp '^' must be changed by 'less than' ans 'v' must be changed by 'bigger than' (it was not displayed correctly on this comentar).