data points
Weekend Top 5 Gross Total from Box Office Mojo Data Feed.
| Time Recorded (time1483) | Data (data1483) |
|---|---|
| 20 May 2013 05:15:19 | [NaN] |
| 13 May 2013 05:15:19 | [138.2] |
| 06 May 2013 05:15:19 | [NaN] |
| 29 Apr 2013 05:15:20 | [NaN] |
| 22 Apr 2013 05:15:19 | [NaN] |
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));
0 comments