basically I am trying to grab stock tickers in python from yahoo.
I figured out through research that you can't use & in a url without using the url escape sequence, but every time the script runs it downloads the desired files, but then hangs indefinitely
import os
import subprocess
urlStart = 'http://download.finance.yahoo.com/d/quotes.csv?s=';
urlEnd = '%26f=b2';
fileStart = 'quotes.csv?s=';
stockList = "goog:t:msft:fb:orcl:csco:dell:hpq:intc:amd:qcom";
stockArray = stockList.split(":");
i=0
while(i < len(stockArray)):
downloadLink = urlStart + stockArray[i] + urlEnd;
subprocess.Popen(["wget", downloadLink]);
fileName = fileStart + stockArray[i];
i += 1;
and I am unsure where to go. I had the same exact problem in c so I jumped over to python thinking it was c related, but ran in to the same error. any tips?