Reply To: Support Session Recordings and Code

Skip The Dip Book Forums Python for Financial Analysis Support Session Recordings and Code Reply To: Support Session Recordings and Code

#5629
Bruce Bitner
Keymaster
Up
0
Down
::

Code for “Collecting FinViz.com stock screener data into Python”

# -*- coding: utf-8 -*-
"""
Created on Thu Mar 12 07:45:26 2020

@author: Bruce1
"""

import pandas as pd

url = 'https://finviz.com/screener.ashx?v=111&f=ind_aluminum,sec_basicmaterials'

df = pd.read_html(url, header=0)[14]

print(df[['Ticker','Price']])
Scroll to Top