from html_table_takeout import parse_html # start with http:// or https:// to source from a URL tables = parse_html('https://en.wikipedia.org/wiki/List_of_S%26P_500 ...