Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ Make sure to have installed these libraries before executing the program.
* [Urllib](https://docs.python.org/3.0/library/urllib.request.html)
* Blake3

These can be installed with the command
```python -m pip install -r requirements.txt```

## First time running

### Run it once
Expand Down
4 changes: 2 additions & 2 deletions Reddit_image_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def read_img_links(submissions, url_list, user_submissions):
redditors_file = open('./users.txt', 'r')

for redditor in redditors_file.readlines():
if '#' in redditor:
if '#' in redditor or not redditor.strip():
continue
redditor = redditor.strip('\n').lower()
log('Starting Retrieval from: ' + redditor)
Expand Down Expand Up @@ -511,7 +511,7 @@ def read_img_links(submissions, url_list, user_submissions):
delete_duplicates_by_hash('./users/{}'.format(redditor))

for subreddit in subs_file.readlines():
if '#' in subreddit:
if '#' in subreddit or not subreddit.strip():
continue
subreddit = subreddit.strip('\n').lower()
log('Starting Retrieval from: /r/' + subreddit)
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
praw>=7.7.0
blake3>=0.3.3