BeautifulSoup webscrape .asp only searches last in list

def get_NYSE_tickers(): an = ['A', 'B', 'C', 'D', 'E', 'F', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '0'] for value in an: resp = requests.get( 'https://www.advfn.com/nyse/newyorkstockexchange.asp?companies={}'.format(value)) soup = bs.BeautifulSoup(resp.text, 'lxml') table = soup.find('table', class_='market tab1') tickers = [] for row in table.findAll('tr', class_='ts1',)[0:]: … Read more