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

Close-button

Top 50 Cody players

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

817

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

Time Recorded (time1775) Data (data1775)
22 Nov 2014 08:30:10 [1809 1595 1545 1539 1512 1508 1336 1312 1292 1139 1093 1030 1000 9190 8560 8540 8510 8415 8370 8350 8340 8055 7975 7935 7665 7525 7365 7190 7030 6835 6700 6630 6355 6230 6080 6050 5870 5780 5755 5670 5125 5010 4970 4780 4725 4725 4540 4540 4525 4460]
21 Nov 2014 08:30:17 [1809 1596 1544 1537 1512 1504 1336 1312 1288 1139 1093 1030 1000 9190 8570 8540 8510 8370 8365 8350 8340 8045 7975 7935 7665 7495 7365 7190 7030 6815 6700 6630 6355 6230 6080 6050 5870 5780 5755 5670 5125 5010 4860 4780 4725 4725 4540 4540 4525 4460]
20 Nov 2014 08:30:14 [1809 1594 1544 1536 1512 1503 1336 1312 1287 1139 1093 1030 1000 9190 8570 8540 8500 8370 8350 8345 8340 8045 7975 7935 7645 7495 7365 7190 7030 6815 6700 6630 6355 6230 6080 6050 5870 5780 5755 5670 5125 5010 4860 4780 4725 4725 4540 4540 4525 4460]
19 Nov 2014 08:30:13 [1809 1594 1544 1536 1512 1503 1336 1312 1286 1139 1093 1030 1000 9190 8570 8540 8500 8370 8350 8345 8340 8015 7975 7935 7645 7495 7365 7190 7030 6695 6680 6630 6355 6230 6050 6000 5870 5780 5755 5670 5125 5010 4860 4780 4725 4725 4540 4540 4525 4460]
18 Nov 2014 08:30:13 [1809 1594 1543 1533 1512 1503 1336 1312 1286 1139 1084 1030 1000 9190 8560 8510 8470 8370 8350 8340 8325 8005 7975 7935 7645 7495 7365 7190 7030 6660 6630 6615 6355 6230 6050 5950 5870 5780 5755 5670 5125 5010 4860 4780 4725 4725 4540 4540 4525 4460]
% % % 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).