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

Close-button

Top 50 Cody players

978

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 978) Show All Data

Time Recorded (time1775) Data (data1775)
22 May 2015 07:30:11 [2169 2043 1941 1923 1874 1824 1739 1657 1455 1345 1264 1256 1219 1194 1139 1111 1060 1055 1037 1000 9825 9580 9190 9070 9040 8370 8340 8015 7935 7640 7550 7365 7210 7030 6630 6355 6330 6230 6090 6080 6050 5870 5800 5780 5755 5655 5560 5550 5125 5020]
21 May 2015 07:30:11 [2169 2039 1941 1923 1872 1822 1739 1656 1455 1345 1264 1244 1219 1189 1139 1110 1061 1055 1037 1000 9825 9450 9190 9060 9040 8370 8340 8015 7935 7640 7550 7365 7210 7030 6630 6355 6330 6230 6090 6080 6050 5870 5800 5780 5755 5655 5560 5550 5125 5020]
20 May 2015 07:30:11 [2169 2035 1941 1921 1867 1822 1739 1655 1455 1345 1264 1235 1219 1189 1139 1109 1060 1055 1037 1000 9825 9250 9190 9060 9040 8370 8340 8015 7935 7640 7550 7365 7210 7030 6630 6355 6330 6230 6090 6080 6050 5870 5800 5780 5755 5655 5560 5550 5125 5020]
20 May 2015 07:30:10 [2169 2035 1941 1921 1867 1822 1739 1655 1455 1345 1264 1235 1219 1189 1139 1109 1060 1055 1037 1000 9825 9250 9190 9060 9040 8370 8340 8015 7935 7640 7550 7365 7210 7030 6630 6355 6330 6230 6090 6080 6050 5870 5800 5780 5755 5655 5560 5550 5125 5020]
19 May 2015 16:50:13 [2169 2034 1941 1921 1865 1822 1739 1654 1455 1345 1264 1235 1219 1189 1139 1108 1056 1055 1037 1000 9825 9220 9190 9060 9040 8370 8340 8015 7935 7640 7550 7365 7210 7030 6630 6355 6330 6230 6090 6080 6050 5870 5800 5780 5755 5655 5560 5550 5125 5020]
% % % 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

    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).