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

Close-button

Top 50 Cody players

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

723

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

Time Recorded (time1775) Data (data1775)
25 Jul 2014 07:30:19 [1678 1392 1379 1358 1336 1312 1231 1140 1083 1041 1031 1000 9060 8700 8350 8030 7975 7935 7805 7790 7365 7030 6935 6760 6715 6620 6435 6230 6210 6000 5870 5780 5755 5685 5580 5425 5420 5125 4780 4730 4725 4725 4525 4500 4470 4460 4410 4395 4335 4295]
24 Jul 2014 07:30:18 [1678 1387 1379 1358 1336 1312 1231 1140 1083 1041 1027 1000 9060 8690 8350 8020 7975 7935 7805 7790 7365 7030 6935 6760 6715 6620 6435 6230 6190 6000 5870 5780 5755 5685 5580 5425 5420 5125 4780 4730 4725 4725 4525 4500 4470 4460 4410 4395 4335 4295]
23 Jul 2014 07:30:20 [1678 1387 1380 1358 1336 1312 1220 1141 1083 1036 1027 1000 9020 8690 8350 8020 7975 7935 7805 7790 7365 7030 6935 6760 6715 6620 6435 6230 6190 6000 5870 5780 5755 5665 5580 5425 5420 5125 4780 4730 4725 4725 4525 4500 4460 4460 4410 4395 4335 4295]
22 Jul 2014 07:30:18 [1678 1387 1378 1358 1336 1312 1211 1141 1077 1035 1027 1000 8970 8690 8350 8010 7975 7935 7805 7790 7365 7030 6795 6760 6715 6620 6435 6230 6190 6000 5870 5780 5755 5645 5580 5425 5420 5125 4780 4730 4725 4725 4525 4500 4460 4460 4410 4395 4335 4295]
21 Jul 2014 07:30:19 [1677 1380 1375 1358 1336 1312 1209 1140 1077 1035 1027 1000 8940 8660 8350 8000 7975 7935 7805 7780 7365 7030 6795 6760 6715 6620 6435 6230 6190 6000 5870 5780 5755 5580 5425 5370 5135 5125 4780 4730 4725 4725 4525 4500 4460 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).