File size: 569 Bytes
3a8f40d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import os
from reddit.reddit_processor import RedditProcessor
from pathlib import Path
import argparse
def run_reddit(reddit_csv_out:os.PathLike):
rp = RedditProcessor()
rp(reddit_out_file=reddit_csv_out)
if __name__ == "__main__":
parser = argparse.ArgumentParser(prog="RedditProcessor", description="fetched reddit image urls")
parser.add_argument("-o", dest="reddit_csv_out", required=True,
help="output file for reddit image urls", metavar="FILE")
args = parser.parse_args()
run_reddit(args.reddit_csv_out) |