reddew / run_reddit.py
chitravyanjan's picture
reddew entry
3a8f40d
raw
history blame contribute delete
569 Bytes
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)