import pandas as pd
import sys
try:assertlen(sys.argv) ==3exceptAssertionError:print("Give a url and name argument.")try:
all_tables = pd.read_html(
sys.argv[1])assert all_tables is not None or all_tables != []
all_tables[0].to_csv('./csv/{}.csv'.format(sys.argv[2]))exceptExceptionas e:print("Something went wrong getting the table from the url")