0
I'm trying to download a ccv file here, but it's throwing syntax wrong. Can somebody help me fix this.,
6 Respuestas
+ 16
Syntax Error is because of the url, you did not insert it in the quotes ( " " )
# FIX
goog_url = "https://query1.finance.yahoo.com/v7/finance/download/GOOG?period1=1494419031&period2=1497097431&interval=1d&events=history&crumb=HXtiH0Xjvu5"
BTW, it give me a "memory limit exceeded", this might be because of Sololearn's servers, but i'd wait for more expert opinion. :)
+ 3
@Murgu wrote: << I tried this still its throwing error >>
Because you haven't made change describe by @Maz to fix the "Syntax error: invalid syntax"...
And anyway, you'll get a "memory limit exceeded" error: Sololearn code playground have some limits, and I've already seen that more than one http request seems to be impossible because of time limit also exceeded. But as your code try only one request, the memory limit is probably reached because of the failure of your request anyway, for 'unauthorized' error ('invalid cookie'), as you can easily see by opening your url in a browser, or executing your script in a local Python interpreter (wich will throw an 'unauthorized' error without more information) ^^
0
I tried this still its throwing error
0
I think error is bcoz i cant open ur dp
0
sololearn is of no use
- 2
i thought i will get a solution
to my problem