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

Close-button

Top Players in Cody

  • Created by: Ned Gulley
  • Last ran: about 14 hours ago.
  • Auto-run in: about 10 hours.
  • Created on: 06 Jul 2012

864

data points

Description:

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

Time Recorded (time1748) Data (data1748)
23 Nov 2014 10:00:32 [1379371 18090 343082 15970 3437206 15515 33802 15380 734801 15140 2255311 15125 2789428 13360 2722350 13125 4345310 13045 963450 11390]
22 Nov 2014 10:00:30 [1379371 18090 343082 15950 3437206 15455 33802 15390 2255311 15125 734801 15080 2789428 13360 2722350 13125 4345310 12925 963450 11390]
21 Nov 2014 10:00:33 [1379371 18090 343082 15960 3437206 15445 33802 15370 2255311 15125 734801 15040 2789428 13360 2722350 13125 4345310 12885 963450 11390]
20 Nov 2014 10:00:29 [1379371 18090 343082 15940 3437206 15445 33802 15360 2255311 15125 734801 15030 2789428 13360 2722350 13125 4345310 12875 963450 11390]
19 Nov 2014 10:00:30 [1379371 18090 343082 15940 3437206 15445 33802 15360 2255311 15125 734801 15030 2789428 13360 2722350 13125 4345310 12865 963450 11390]
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 = 10;
vals = zeros(2,n);
for i = 1:n
    profid = str2num(tk{i}{1});
    score = str2num(tk{i}{2});
    vals(1,i) = profid;
    vals(2,i) = score;
end
vals = vals(:)';
updatetrend(vals)
Tags:

    Add Tags


    0 comments