From 961148fe5ac3a11c5db6164e484a8071d16dbe5a Mon Sep 17 00:00:00 2001 From: berndsi Date: Mon, 23 Mar 2015 21:55:52 -0600 Subject: [PATCH] Update analystestimate to new HTML structure --- .../finance/yahoo.finance.analystestimate.xml | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/yahoo/finance/yahoo.finance.analystestimate.xml b/yahoo/finance/yahoo.finance.analystestimate.xml index 2d94efef..8487dac0 100644 --- a/yahoo/finance/yahoo.finance.analystestimate.xml +++ b/yahoo/finance/yahoo.finance.analystestimate.xml @@ -22,8 +22,9 @@ ; var j = 1; while(j < table.tr.length()) { var row = table.tr[j].td; - var rname = row[0].p.text().toString().replace(/[\s\.]+/g, ""); + var rname = row[0].text().toString().replace(/[\s\.]+/g, ""); rname = rname.replace(/\(.*\)/g,"").replace(/\%/,"").replace(/^(\d)/,"_$1"); rname = rname.replace(/\//, ""); var rval1 = getelement(row[1]);