We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i try to use google finance for importing stock price but i have this problem (work with python 2.x) 👍 the json object must be str not 'bytes'
def get_value(identifier): get_value_url = 'http://finance.google.com/finance/info?client=ig&q=' + identifier value = subprocess.Popen(['curl', '-s', get_value_url], stdout=subprocess.PIPE).communicate()[0] j = json.loads(value[5:len(value)-2]) return float(j['l'])
The text was updated successfully, but these errors were encountered:
from googlefinance import getQuotes import json print(getQuotes('AAPL')[0]['LastTradePrice'])
Sorry, something went wrong.
No branches or pull requests
i try to use google finance for importing stock price but i have this problem (work with python 2.x) 👍
the json object must be str not 'bytes'
def get_value(identifier): get_value_url = 'http://finance.google.com/finance/info?client=ig&q=' + identifier value = subprocess.Popen(['curl', '-s', get_value_url], stdout=subprocess.PIPE).communicate()[0] j = json.loads(value[5:len(value)-2]) return float(j['l'])
The text was updated successfully, but these errors were encountered: