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

Close-button

Box Office Mojo Weekend Top 5 Gross Total

  • Created by: Toshiaki Takeuchi
  • Last ran: 1 day ago.
  • Auto-run in: 5 days.
  • Created on: 24 Feb 2012

393

data points

Description:

Weekend Top 5 Gross Total from Box Office Mojo Data Feed.

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

Time Recorded (time1483) Data (data1483)
20 Oct 2014 05:15:14 [NaN]
13 Oct 2014 05:15:12 [NaN]
06 Oct 2014 05:15:13 [NaN]
29 Sep 2014 05:15:12 [81.6]
22 Sep 2014 05:15:12 [76.7]
url = 'http://www.boxofficemojo.com/data/js/wknd5.php';
total = zeros(5,1);
page = urlread(url);

for i = 1:5
  target = sprintf('%d. ', i);
  gross = urlfilter(page, target, 2);
  if length(gross) < 2 || gross(2) == i+1
    total(i) = gross(1);
  else
    total(i) = gross(2);
  end
end

updatetrend(sum(total));
Tags:

Add Tags


0 comments