I finally found the way to alter the StockWatch object so I am able to get more data than the standard 5 data. However, there is something strange going on with the URL. I mailed cycling support but they told me to ask it on the forum, so here is the mail I send them:
You have to set the features to get teh data you want. For example, with the original object you get 5 data however, if you add some lettercodes to the URL in the JAVA-code you can get more data (for example, I can receive nowthe opening price becasue I added the code o0). I have to add some more stu Now, what is really weird is that when I delete the original lettercodes in the URL and replace them with my featureset, I get errors when I run the object. However, when I leave those codes in place, the object runs fine although I have duplicate data in the beginning and ending of the URL.
Here is the original URL: “http://finance.yahoo.com/d/quotes.csv?f=sl1d1t1c1ohgv&e=.csv”
here is my URL (this one does not work): “http://finance.yahoo.com/d/quotes.csv?f=c8b2a5a2b3b6b4c1m7m5k4j5p2c6c4h0g0m0w1r1d0y0e0j4e7e9e8f6d1l1k3t1j1j3n0t8o0r5r0m8m6k5j6p0p6r6r7p5s6s1j2s7x0s0m4v0k0j0w0&e=.csv”;
Here is my URL but with the beginning and ending from the original (this one works): “http://finance.yahoo.com/d/quotes.csv?f=sl1d1t1v0c4c8b2a5a2b3b6b4c1m7m5k4j5p2c6c4h0g0m0w1r1d0y0e0j4e7e9e8f6d1l1k3t1j1j3n0t8o0r5r0m8m6k5j6p0p6r6r7p5s6s1j2s7x0s0m4v0k0j0w0ohgv&e=.csv”;
I am attaching the Javacode of my object so those who want can have a look
Source: http://cycling74.com/forums/topic/data-scraping-with-yahoo-finance-stockwatch/
You have to set the features to get teh data you want. For example, with the original object you get 5 data however, if you add some lettercodes to the URL in the JAVA-code you can get more data (for example, I can receive nowthe opening price becasue I added the code o0). I have to add some more stu Now, what is really weird is that when I delete the original lettercodes in the URL and replace them with my featureset, I get errors when I run the object. However, when I leave those codes in place, the object runs fine although I have duplicate data in the beginning and ending of the URL.
Here is the original URL: “http://finance.yahoo.com/d/quotes.csv?f=sl1d1t1c1ohgv&e=.csv”
here is my URL (this one does not work): “http://finance.yahoo.com/d/quotes.csv?f=c8b2a5a2b3b6b4c1m7m5k4j5p2c6c4h0g0m0w1r1d0y0e0j4e7e9e8f6d1l1k3t1j1j3n0t8o0r5r0m8m6k5j6p0p6r6r7p5s6s1j2s7x0s0m4v0k0j0w0&e=.csv”;
Here is my URL but with the beginning and ending from the original (this one works): “http://finance.yahoo.com/d/quotes.csv?f=sl1d1t1v0c4c8b2a5a2b3b6b4c1m7m5k4j5p2c6c4h0g0m0w1r1d0y0e0j4e7e9e8f6d1l1k3t1j1j3n0t8o0r5r0m8m6k5j6p0p6r6r7p5s6s1j2s7x0s0m4v0k0j0w0ohgv&e=.csv”;
I am attaching the Javacode of my object so those who want can have a look
Source: http://cycling74.com/forums/topic/data-scraping-with-yahoo-finance-stockwatch/
No comments:
Post a Comment