Since it's your first time here, let us show you how Trendy works.

Close-button

Top Players in Cody

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

324

data points

Description:

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

Time Recorded (time1748) Data (data1748)
24 May 2013 09:00:34 [2789428 11025 2722350 10495 1379371 9450 33802 8620 734801 8195 343082 8170 869884 8160 2391181 7975 870409 7830 3354683 7670]
23 May 2013 09:00:35 [2789428 11025 2722350 10495 1379371 9450 33802 8610 734801 8175 343082 8170 869884 8160 2391181 7975 870409 7810 3354683 7640]
22 May 2013 09:00:33 [2789428 11025 2722350 10495 1379371 9450 33802 8580 343082 8170 869884 8160 734801 8145 2391181 7975 870409 7810 3354683 7620]
21 May 2013 09:00:33 [2789428 11025 2722350 10495 1379371 9450 33802 8560 343082 8170 869884 8150 734801 8070 2391181 7975 870409 7720 3354683 7590]
20 May 2013 09:00:37 [2789428 11025 2722350 10495 1379371 9450 33802 8560 343082 8170 869884 8150 734801 8035 2391181 7975 870409 7710 3354683 7550]
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:

    0 comments