For migrating /r/pokemontrades flair to new reddit.
- Install Python 3 and PRAW. PRAW installation instructions: https://praw.readthedocs.io/en/latest/getting_started/installation.html
- Create a Reddit app with option:
script
, redirect URI:http://localhost:8080
. - Save this script to your machine as
refreshtoken.py
and then runpython3 refreshtoken.py
. - When prompted by the refresh token script, enter your Reddit app's client ID/secret, and scopes
flair,modflair
. Copy+paste the URL it gives you into your browser and authorize the app with your account. - You should now have a refresh token. Add the app info + refresh token to the auth info at the top of
newreddit.py
. - Ensure
newreddit.py
is using the correct sub to avoid unwanted changes! python3 newreddit.py