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

Close-button

Top 50 Cody players

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

729

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

Time Recorded (time1775) Data (data1775)
31 Jul 2014 07:30:19 [1679 1394 1389 1358 1336 1312 1259 1140 1129 1053 1035 1000 9150 8740 8350 8070 7975 7935 7805 7790 7365 7030 6935 6760 6715 6620 6435 6230 6230 6000 5870 5780 5755 5715 5580 5490 5425 5125 4780 4730 4725 4725 4525 4510 4500 4460 4410 4395 4335 4295]
30 Jul 2014 07:30:19 [1678 1394 1387 1358 1336 1312 1241 1140 1114 1051 1035 1000 9110 8740 8350 8070 7975 7935 7805 7790 7365 7030 6935 6760 6715 6620 6435 6230 6230 6000 5870 5780 5755 5715 5580 5460 5425 5125 4780 4730 4725 4725 4525 4510 4500 4460 4410 4395 4335 4295]
29 Jul 2014 07:30:19 [1678 1395 1387 1358 1336 1312 1238 1140 1114 1046 1035 1000 9120 8740 8350 8050 7975 7935 7805 7790 7365 7030 6935 6760 6715 6620 6435 6230 6230 6000 5870 5780 5755 5725 5580 5460 5425 5125 4780 4730 4725 4725 4525 4510 4500 4460 4410 4395 4335 4295]
28 Jul 2014 07:30:18 [1678 1395 1387 1358 1336 1312 1236 1140 1111 1045 1035 1000 9070 8700 8350 8050 7975 7935 7805 7790 7365 7030 6935 6760 6715 6620 6435 6230 6230 6000 5870 5780 5755 5725 5580 5450 5425 5125 4780 4730 4725 4725 4525 4510 4500 4460 4410 4395 4335 4295]
27 Jul 2014 07:30:18 [1678 1392 1385 1358 1336 1312 1236 1140 1111 1044 1033 1000 9070 8700 8350 8050 7975 7935 7805 7790 7365 7030 6935 6760 6715 6620 6435 6230 6230 6000 5870 5780 5755 5725 5580 5440 5425 5125 4780 4730 4725 4725 4525 4510 4500 4460 4410 4395 4335 4295]
% % % 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

    José Ramón Menzinger 9 months 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).