Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"""
payload = {
'ty': chart_type,
'ta': ta,
'p': period,
's': size
}
base_url = 'https://finviz.com/chart.ashx?' + urlencode(payload)
chart_urls = []
for row in self.data:
chart_urls.append(base_url + f"&t={row.get('Ticker')}")
async_connector = Connector(scrape.download_chart_image, chart_urls)
async_connector.run_connector()