A Reddit image client which bypasses the 1000 post limit using the pushshift API, and can filter by flair.
Also supports the prefetching and lazy-loading of images for a more responsive experience.
Reddit has a global 1000 post limit on listings, which is reached especially quickly when filtering posts by a flair. The ability to natively query by timestamp was also recently dropped, meaning that the only way to search for submissions past the 1000 new/hot/top ones is to use a 3rd party api, such as the pushshift API.
While gallery browsers for Reddit do exist, I couldn't find any that were not subject to this limitation because they didn't use 3rd party APIs. Hence, RedditFlair
cd
into the directory where you want to put the program, then:
git clone https://github.com/pixelzery/RedditFlair.git
cd RedditFlair
python3 -m pip install -r requirements.txt
You will need to authorise this script to work with Reddit. It's fine, it takes like 10 seconds.
- Go to https://www.reddit.com/prefs/apps, scroll to the bottom and click on "are you a developer? create an app..."
- Select 'installed app'
- Give it a name -- something like 'flair'
- Set the redirect url to: http://localhost:8298
- Click 'create app'
- Reddit will give you a code, this is your
client_id
- Edit the
auth.json
file in this repo and paste into theclient_id
field - As per the Reddit API guidelines, enter an identifiable string in the
user_agent
field -- something likeRedditFlair instance by u/<your username> https://git.io/J3PPe
python3 main.py