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

Close-button

Winning Percentage for All MLB Teams

This trend is disabled.

This trend is disabled and will not collect data until re-enabled.

  • Created by: Ned Gulley
  • Last ran: almost 2 years ago.
  • Auto-run in: almost 2 years.
  • Created on: 25 May 2012

192

data points

Disabled

Description:

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

Time Recorded (time1690) Data (data1690)
26 Dec 2012 09:31:28 [613 452 682 774 357 469 640 515 455 500 545 241 640 440 310 414 458 556 467 310 414 385 593 469 531 500 714 545 438 600]
25 Dec 2012 09:31:27 [549 340 580 451 580 512 543 377 500 531 580 420 463 426 457 605 574 469 500 488 574 556 426 599 395 444 543 407 525 586]
24 Dec 2012 09:31:31 [549 340 580 451 580 512 543 377 500 531 580 420 463 426 457 605 574 469 500 488 574 556 426 599 395 444 543 407 525 586]
23 Dec 2012 09:31:33 [549 340 580 451 580 512 543 377 500 531 580 420 463 426 457 605 574 469 500 488 574 556 426 599 395 444 543 407 525 586]
22 Dec 2012 09:31:35 [549 340 580 451 580 512 543 377 500 531 580 420 463 426 457 605 574 469 500 488 574 556 426 599 395 444 543 407 525 586]
url = 'http://sportsillustrated.cnn.com/baseball/mlb/standings/';
html = urlread(url);

target = '<td class="cnnCol3">\.(\d\d\d)</td>';
tk = regexp(html,target,'tokens');

pct = zeros(size(tk));
for i = 1:length(tk)
    pct(i) = str2num(tk{i}{1});
end

target = 'img title="(.*?)"';
tk2 = regexp(html,target,'tokens');
names = [];
for i = 1:length(tk2)
    names{i} = tk2{i}{1};
end

[names,ix] = sort(names);
pct = pct(ix);

% for i = 1:length(names)
%    fprintf('%s: %d\n',names{i},pct(i));
% end

updatetrend(pct)
Tags:

    Add Tags


    0 comments