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

Close-button

Price of a dozen roses

994

data points

Description:

Average price of roses, taken from a few different online florists.

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

Time Recorded (time1443) Data (data1443)
16 Apr 2015 08:15:14 [54.98175]
15 Apr 2015 08:15:14 [54.98175]
14 Apr 2015 08:15:20 [54.98175]
13 Apr 2015 08:15:21 [54.98175]
12 Apr 2015 08:15:14 [54.98175]
dstring = '\s*\$(\d+\.*\d*)';
price = NaN(4,1);

url = 'http://products.proflowers.com/roses/One-Dozen-Red-Roses-4537';
x = regexp(regexprep(regexprep(urlread(url),'<.*?>',''),'\s+',' '),['One Dozen Red Roses',dstring],'tokens');
if ~isempty(x)
    price(1) = str2double(x{1});
end

url = 'http://ww12.1800flowers.com/product.do?baseCode=1120&dataset=10590&dataset=12219&cm_cid=d10590';
x = regexp(regexprep(regexprep(urlread(url),'<.*?>',''),'\s+',' '),['12 Stem Red Roses (',dstring],'tokens');
if ~isempty(x)
    price(2) = str2double(x{1});
end

url = 'http://www.teleflora.com/flowers/bouquet/telefloras-rose-classique--dozen-red-roses-372754p.asp';
x = regexp(regexprep(regexprep(urlread(url),'<.*?>',''),'\s+',' '),['Standard',dstring],'tokens');
if ~isempty(x)
    price(3) = str2double(x{1});
end

url = 'http://www.ftdfloristsonline.com/flowers/product/1-dozen-roses/display';
x = regexp(regexprep(regexprep(urlread(url),'<.*?>',''),'\s+',' '),['1 Dozen Roses[^$]*?US',dstring],'tokens');
if ~isempty(x)
price(4) = str2double(x{1});
end

price(~isfinite(price)) = [];

updatetrend(mean(price));
Tags:

Add Tags


0 comments