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

Close-button

Top Players in Cody

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

889

data points

Description:

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

Time Recorded (time1748) Data (data1748)
18 Dec 2014 10:00:29 [1379371 18090 734801 16790 3437206 16655 33802 16260 343082 16100 2255311 15495 4345310 14045 2789428 13360 2722350 13125 963450 11390]
17 Dec 2014 10:00:32 [1379371 18090 734801 16870 3437206 16625 33802 16180 343082 16100 2255311 15495 4345310 14085 2789428 13360 2722350 13125 963450 11390]
16 Dec 2014 10:00:29 [1379371 18090 734801 16720 3437206 16625 33802 16180 343082 16040 2255311 15495 4345310 13955 2789428 13360 2722350 13125 963450 11390]
15 Dec 2014 10:00:29 [1379371 18090 734801 16720 3437206 16585 33802 16180 343082 16040 2255311 15495 4345310 13885 2789428 13360 2722350 13125 963450 11390]
14 Dec 2014 10:00:31 [1379371 18090 734801 16640 3437206 16575 33802 16180 343082 16040 2255311 15495 4345310 13885 2789428 13360 2722350 13125 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