extracts elements from api call and adds to a list

PHOTO EMBED

Wed Mar 10 2021 01:13:09 GMT+0000 (Coordinated Universal Time)

Saved by @globalwarme #python

#extract list of tickers from screener
tickers = []
for item in screener:
    tickers.append(item['symbol'])

#extract list of sectors from screener
sectors = []
for item in screener:
    sectors.append(item['sector'])

#extract list of industries from screener
industries = []
for item in screener:
    industries.append(item['industry'])

#extract list of companies from screener
name = []
for item in screener:
    name.append(item['companyName'])
content_copyCOPY