parser.add_argument("-o", "--output",
default="phrases.db",
help="set custom output file location")
parser.add_argument("-o", "--output",
default="phrases.db",
help="set custom output file location")
return parser.parse_args()
def get_html(url):
print("downloading webpage")
return BeautifulSoup(requests.get(url).content, "html.parser")
return parser.parse_args()
def get_html(url):
print("downloading webpage")
return BeautifulSoup(requests.get(url).content, "html.parser")
print("prepping database")
c.execute("DROP TABLE IF EXISTS phrases")
c.execute("""CREATE TABLE phrases(
print("prepping database")
c.execute("DROP TABLE IF EXISTS phrases")
c.execute("""CREATE TABLE phrases(
full)&oldid=986793908""")
return get_html(url).find_all("table", attrs={"class":"wikitable"})
full)&oldid=986793908""")
return get_html(url).find_all("table", attrs={"class":"wikitable"})