techiesms / Stock-Price-Monitoring-Device

This is the code for the project named, Portable stock price monitoring device
2 stars 3 forks source link

How do I retrieve data of a certain stock in Market watch.com #1

Open kiranshashiny opened 5 years ago

kiranshashiny commented 5 years ago

I want to pull down data of CHAP ( ticker symbol ) and the inspect /copy to xpath does not give the URL like you suggested from marketwatch.com

The class is bg-quote, but in it is "data-last-raw"

The parse string in the xPath is "/html/body/div[2]/div[2]/div[2]/div/div/div[2]/h3/bg-quote", this is incorrect.

It has to "data-last-raw " inside "bg-quote "

How do I go about getting that ?

Screen Shot 2019-05-15 at 10 06 59 PM

kiranshashiny commented 5 years ago

The URL that I entered in Thingspeak is

is https://www.marketwatch.com/investing/stock/chap

kiranshashiny commented 5 years ago

I tried curl with the key and it says "Error Parsing document" message.

$ curl https://api.thingspeak.com/apps/thinghttp/send_request?api_key=6X8IQKI87F5YIEYS Error parsing document, try a different parse string.