-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
args.py
10 lines (8 loc) · 861 Bytes
/
args.py
1
2
3
4
5
6
7
8
9
10
import argparse
parser = argparse.ArgumentParser(description="Create a database of anime theme timestamps.")
parser.add_argument("-v", "--verbose", dest="verbose", action="store_true", help="display verbose logging")
parser.add_argument("-sa", "--skip-aggregation", dest="skip_aggregation", action="store_true", help="skips the first loop that aggregates timestamps from other databases")
parser.add_argument("-asi", "--aggregation-start-id", dest="aggregation_start", type=int, help="set the start ID for the first, aggregation, loop")
parser.add_argument("-ssi", "--scrape-start-id", dest="scrape_start", type=int, help="set the start ID for the second, scraping, loop")
parser.add_argument("-smr", "--scrape-max-retry", dest="scrape_max_retry", type=int, help="change the max retry count for episode scraping. Default 10")
parsed_args = parser.parse_args()