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

Close-button

Top Players in Cody

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

775

data points

Description:

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

Time Recorded (time1748) Data (data1748)
27 Aug 2014 09:00:31 [1379371 16790 343082 14500 2255311 14315 3437206 13840 33802 13635 2789428 13360 2722350 13125 734801 12800 963450 11400 4345310 11125]
26 Aug 2014 09:00:29 [1379371 16790 343082 14500 2255311 14275 3437206 13720 33802 13635 2789428 13360 2722350 13125 734801 12800 963450 11400 4345310 11125]
25 Aug 2014 09:00:30 [1379371 16790 343082 14490 2255311 14215 3437206 13700 33802 13635 2789428 13360 2722350 13125 734801 12800 963450 11400 4345310 11125]
24 Aug 2014 09:00:32 [1379371 16790 343082 14490 2255311 14215 3437206 13700 33802 13635 2789428 13360 2722350 13125 734801 12660 963450 11400 4345310 11125]
23 Aug 2014 09:00:29 [1379371 16790 343082 14490 2255311 14215 3437206 13670 33802 13635 2789428 13360 2722350 13125 734801 12660 963450 11400 4345310 11125]
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