ok i change back to the good line, same issue append to me 2 quote not found
Requesting url: https://finance.yahoo.com/quote/HEXO.TO ** For Symbol: HEXO"TO new quotes not found (there is no 'data-field="regularMarketPrice" data-trend="none" data-pricehint="2" value="' in html that came back)
Requesting url: https://finance.yahoo.com/quote/SOI.V ** For Symbol: SOI.V new quotes not found (there is no 'data-field="regularMarketPrice" data-trend="none" data-pricehint="2" value="' in html that came back)
To all - can you please share symbols that do not work. I have a volunteer that is going to work on a script and asked me to provide examples of symbols that do not work with current setup. So far reported list of symbols: DIV.TO HITI.V HEXO.TO SOI.V
In the script we search now for the string data-pricehint=`"2`" but I see in the HTML string for some symbols the string data-pricehint="4" and then script returns an error
Comments
# ---------------------------------------------
# Identifying price
# ---------------------------------------------
#Price is in this string: 174.96
# old from Jan 24 $startStr = ""; $endStr = "";
$startStr = "data-field=`"regularMarketPrice`" data-trend=`"none`" data-pricehint=`"2`" value=`""; $endStr = "`"";
#Price is in this string: data-reactid="29">75.73
$startStr = ""; $endStr = "";
# old 30 nov one $startStr = ""; $endStr = "";
# suggestion $startStr = "active=`"`" data-reactid=`"29`">"; $endStr = "";
$startStr = "active=`"`" data-reactid=`"29`">"; $endStr = "<";
Requesting url: https://finance.yahoo.com/quote/HEXO.TO
** For Symbol: HEXO"TO new quotes not found (there is no 'data-field="regularMarketPrice" data-trend="none" data-pricehint="2" value="' in html that came back)
Requesting url: https://finance.yahoo.com/quote/SOI.V
** For Symbol: SOI.V new quotes not found (there is no 'data-field="regularMarketPrice" data-trend="none" data-pricehint="2" value="' in html that came back)
So far reported list of symbols:
DIV.TO
HITI.V
HEXO.TO
SOI.V
http://www.portfolioslicer.com/download/GetQuotes-YahooIntraday.zip
Unzip and copy to the existing script location and then test.