Add --ignore to ignore user

This commit is contained in:
Jay R. Wren
2021-10-30 22:19:46 -04:00
committed by Serene-Arc
parent 4a86482756
commit dd8d74ee25
5 changed files with 9 additions and 0 deletions

View File

@@ -28,6 +28,8 @@ class Archiver(RedditConnector):
def download(self):
for generator in self.reddit_lists:
for submission in generator:
if submission.author.name in self.args.ignore_user:
continue
logger.debug(f'Attempting to archive submission {submission.id}')
self.write_entry(submission)