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

Close-button

Top Players in Cody

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

642

data points

Description:

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

Time Recorded (time1748) Data (data1748)
17 Apr 2014 09:00:31 [1379371 15800 2789428 14765 2722350 13275 33802 13060 343082 12655 2255311 12625 734801 10090 870409 9970 3877541 9770 4345310 9035]
16 Apr 2014 09:00:29 [1379371 15800 2789428 14765 2722350 13275 33802 13060 343082 12655 2255311 12605 734801 10090 870409 9970 3877541 9770 4345310 9035]
15 Apr 2014 09:00:28 [1379371 15800 2789428 14765 2722350 13275 33802 13060 343082 12655 2255311 12605 734801 10080 870409 9970 3877541 9770 4345310 9035]
14 Apr 2014 09:00:29 [1379371 15660 2789428 14765 2722350 13215 33802 12960 343082 12655 2255311 12585 734801 10050 870409 9970 3877541 9770 4345310 9005]
13 Apr 2014 09:00:33 [1379371 15660 2789428 14765 2722350 13215 33802 12960 343082 12655 2255311 12555 734801 10040 870409 9970 3877541 9770 4345310 8925]
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