fff690b996ec948fd0b3edbc3057915039006bd4,Sentiment/stocktwits.py,,get_twits,#Any#,15

Before Change


// get the data using StockTwits API
def get_twits(ticker):
    url = "https://api.stocktwits.com/api/2/streams/symbol/{0}.json".format(ticker)
    connection = urllib.request.urlopen(url)
    data = connection.read()
    connection.close()
    return json.loads(data)


// loops through to get data for each ticker in the tickers list
def get_twits_list(tickers):

After Change


// get the data using StockTwits API
def get_twits(ticker):
    url = "https://api.stocktwits.com/api/2/streams/symbol/{0}.json".format(ticker)
    response = requests.get(url).json()
    return response


// loops through to get data for each ticker in the tickers list
def get_twits_list(tickers):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: Vaibhav/Stock-Analysis
Commit Name: fff690b996ec948fd0b3edbc3057915039006bd4
Time: 2018-06-29
Author: jacklaytonmoody@gmail.com
File Name: Sentiment/stocktwits.py
Class Name:
Method Name: get_twits


Project Name: okfn-brasil/serenata-de-amor
Commit Name: e1d39a4c9158c9a9db1218cb5be9946152e2ca1b
Time: 2017-04-14
Author: marcus.rehm@gmail.com
File Name: src/fetch_cnpj_info.py
Class Name:
Method Name: fetch_cnpj_info


Project Name: streamlit/streamlit
Commit Name: c74227ac25b35b06f13216bdbf902cb7e636ee42
Time: 2019-09-13
Author: tconkling@gmail.com
File Name: lib/streamlit/config.py
Class Name:
Method Name: _get_public_credentials