0

I'm trying to download a ccv file here, but it's throwing syntax wrong. Can somebody help me fix this.,

https://code.sololearn.com/cMWh0tzPqMNk/?ref=app

10th Jun 2017, 12:49 PM
Murgu
Murgu - avatar
6 Réponses
+ 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. :)
10th Jun 2017, 1:01 PM
Maz
Maz - avatar
+ 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) ^^
12th Jun 2017, 5:40 AM
visph
visph - avatar
0
I tried this still its throwing error
10th Jun 2017, 7:57 PM
Murgu
Murgu - avatar
0
I think error is bcoz i cant open ur dp
14th Oct 2017, 11:28 AM
shubham singh
shubham singh - avatar
0
sololearn is of no use
14th Oct 2017, 11:28 AM
shubham singh
shubham singh - avatar
- 2
i thought i will get a solution to my problem
15th Oct 2017, 3:26 AM
shubham singh
shubham singh - avatar