hongtaocai / googlefinance

Python module to get real-time stock data from Google Finance API
MIT License
700 stars 172 forks source link

Problem with special characters like '&' and '-' #28

Open saw235 opened 7 years ago

saw235 commented 7 years ago

Any symbols with the & will cause the module to throw an error if no results is found, in the case a result is found, the data requested is incorrect.

To reproduce: getQuotes('KLSE:A&M') #will throw an error even though the symbol is listed on google-finance

The & sign needs to be encoded into %26 to get the correct result