On Sat, 20 May 2017, guido giaume wrote:
I think a rough way to bypass the restriction is quite simple.
a) Manually find the our own "ID cookie" (EG going with the mouse over
the download link, then reading the last part of the syntiax of the
query, at the bottom of windows )
b) put it in the query
I don't think I like this idea very much. The cookie hack is obviously
designed to prevent automatic machine-to-machine mass downloads. Probably
there is a way to circumvent this: for example, a hansl script could
request the yahoo page for the ticker, save it as a file, extract the
"crumble" value from the JSON object in which it's contained and add it to
the query. That wouldn't be particularly efficient, but it's doable. But
then, there is a thousand of ways that Yahoo may use to reformulate
slightly the cookie format, so that everything would have to be
re-engineered every time they feel like playing nasty. (OTOH, I see their
point in forcing you to download things by hand: if you skip their ads,
who pays for their data centres that you're downloading your data from?)
This is more or less what the YouTube-dl guys do
(
https://youtube-dl.org/); I'm not particularly interested myself.
frankly, I'd rather use my coding time for econometrics proper.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------