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

Close-button

Price of a dozen roses

This trend is broken.

Error using urlreadwrite (line 97)
Error downloading URL. Your network connection may be down or your proxy settings improperly configured.

Error in urlread (line 36)
[s,status] = urlreadwrite(mfilename,catchErrors,url,varargin{:});

  • Created by: Matt Tearle
  • Last ran: 7 days ago.
  • Auto-run in: 6 days.
  • Created on: 16 Feb 2012

867

data points

Error

Description:

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

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

Time Recorded (time1443) Data (data1443)
15 Aug 2014 08:15:15 NaN
14 Aug 2014 08:15:16 [54.98]
13 Aug 2014 08:15:18 [54.98]
12 Aug 2014 08:15:17 [54.98]
11 Aug 2014 08:15:17 [54.98]
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