This commit is contained in:
Edward Betts 2019-03-16 08:27:37 +00:00 committed by GitHub
commit 3ec350abdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,11 +34,11 @@ googleFinanceKeyToFullName = {
def buildUrl(symbols):
symbol_list = ','.join([symbol for symbol in symbols])
# a deprecated but still active & correct api
return 'http://finance.google.com/finance/info?client=ig&q=' \
return 'https://finance.google.com/finance/info?client=ig&q=' \
+ symbol_list
def buildNewsUrl(symbol, qs='&start=0&num=1000'):
return 'http://www.google.com/finance/company_news?output=json&q=' \
return 'https://www.google.com/finance/company_news?output=json&q=' \
+ symbol + qs
def request(symbols):