1
0
personal-data/personal_data/__main__.py
2024-04-17 00:45:15 +02:00

19 lines
480 B
Python

import personal_data.main
import argparse
import logging
def parse_arguments():
parser = argparse.ArgumentParser()
parser.add_argument('fetchers', metavar='FETCHER', type=str, nargs='+')
return parser.parse_args()
def main():
logging.basicConfig()
logging.getLogger('personal_data').setLevel('INFO')
args = parse_arguments()
scraper_filter = frozenset(args.fetchers)
personal_data.main.main(scraper_filter)
if __name__ == '__main__':
main()