diff options
-rw-r--r-- | walker.py | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -8,14 +8,10 @@ import sys from binascii import unhexlify
parser = argparse.ArgumentParser()
-parser.add_argument('-cid', help='content id, &cid={...}. see url when reading a chapter')
+parser.add_argument('cid', help='content id, &cid={...}. see url when reading a chapter')
parser.add_argument('-v', '--verbose', help='no progressive download logs on terminal', action="store_true")
args = parser.parse_args()
-if args.cid == None:
- parser.print_help()
- sys.exit()
-
logging.basicConfig(format='[%(levelname)s] %(asctime)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S', level=logging.INFO)
def start(url, headers):
|