clean b4 html2txt
This commit is contained in:
parent
5a6589b671
commit
bea232667d
|
@ -28,6 +28,7 @@ import requests
|
|||
import markovify
|
||||
import sys
|
||||
import argparse
|
||||
import json
|
||||
|
||||
# argparse
|
||||
def parse_the_args():
|
||||
|
@ -140,9 +141,6 @@ def main():
|
|||
text = read(args.infile)
|
||||
# read -c file:
|
||||
ctext = read(args.combine)
|
||||
# except FileNotFoundError:
|
||||
# print(fnf)
|
||||
# sys.exit()
|
||||
|
||||
# if -C, combine it w infile/URL:
|
||||
elif args.combine_URL:
|
||||
|
@ -153,9 +151,6 @@ def main():
|
|||
# or normal:
|
||||
else:
|
||||
text = read(args.infile)
|
||||
# except FileNotFoundError:
|
||||
# print(fnf)
|
||||
# sys.exit()
|
||||
# now combine_URL:
|
||||
ctext = URL(args.combine_URL)
|
||||
|
||||
|
@ -184,9 +179,6 @@ def main():
|
|||
else:
|
||||
# try:
|
||||
text = read(args.infile)
|
||||
# except FileNotFoundError:
|
||||
# print(fnf)
|
||||
# sys.exit()
|
||||
|
||||
# Build the model:
|
||||
# if --newline:
|
||||
|
|
Loading…
Reference in New Issue