Is there a way i can grab a column of a table that span over several pages using python?
问题 I am trying to get the tickers of ETFs from a table that spans over 46 pages: http://etfdb.com/type/region/north-america/us/#etfs&sort_name=assets_under_management&sort_order=desc&page=1 My code is import bs4 as bs import pickle import requests def save_ETF_tickers(): resp = requests.get('http://etfdb.com/type/region/north-america/us/#etfs&sort_name=assets_under_management&sort_order=desc&page=1') soup = bs.BeautifulSoup(resp.text, "lxml") table = soup.find('table',{'class': 'table mm-mobile