• Resolved tony714

    (@tony714)


    Hi,

    I would like to use Googles API for stock quote data. Google has deprecated this service but still provides the data feed. For example:

    https://www.google.com/finance/info?q=NASDAQ%3aGOOG

    The problem is when I hit the google URI (shown above) the return json starts with a line comment // [{ so and I cant seem to access any data elements.

    Currently I access a yahoo feed using a twig template as shown below.

    [jsoncontentimporterpro url=http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22LTRX%22)%0A%09%09&env=http%3A%2F%2Fdatatables.org%2Falltables.env&format=json id=1 parser=twig]

    Is it possible to parse the comment tag // out and get access to the data elements like I do with the yahoo data feed?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author berkux

    (@berkux)

    Hi tony714,

    I’ll add this to the next PRO-Version 335. This will take some days.
    Are you in a hurry?

    Bernhard

    Thread Starter tony714

    (@tony714)

    Hi Bernhard,
    That would be great! I’m currently using a feed from yahoo but its very inaccurate and sometimes crashes so the sooner the better.

    Thanks!

    -Tony

    Plugin Author berkux

    (@berkux)

    Hi Tony,

    PRO-Version 3.3.5 is here. By trytohealjson=yes the Plugin tries to fix those JSON by removing all bevor the starting { or [ and ending } or ].
    see https://json-content-importer.com/

    Bernhard

    Thread Starter tony714

    (@tony714)

    Hi Bernhard,
    Your new ‘trytohealjson’ parameter works great!

    Thank you for your help!

    -Tony

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Google Finance JASON Feed’ is closed to new replies.