Get images from Reddit and upload to Instagram, Twitter and FaceBook
git clone https://github.com/prashantsengar/RedIns
pip install -r requirements.txt
- Rename config_example.ini to config.ini
- Open config.ini and add the required API keys (see the next secyion to see how to get them)
- Set
Instagram = True
if you want to post to Instagram. Similarly, set True or False for other accounts - Set captions in
cap.py
- To learn how to get Facebook
app_id
andapp_secret
, visit this page To getpage access token
, see this page - To learn how to get Twitter API keys, visit this page
- Open Command prompt or terminal
- Go to Reddit.com and download the JSON of any subreddit and save it in the 'JSONS.py' file and follow the instruction there.
- Edit or Add captions to be used in 'caps.py' by following the instructions present there.
- Type
python redins.py
orpython3 redins.py
- Enter the number of files to be uploaded
- Let us say you want to get data of the subreddit /r/memes
- Go to https://reddit.com/r/memes.json
- Save the web page as memes.json in the directory of the project
- Open
JSONs.py
and writenew_JSON('memes.json')
after line 5
Note: Due to recent changes in Instagram's private API, Instagram posting might not work. It will be updated to use the new Graph API
Read the contributing guide
Join the Telegram group for support and contributing. If you want to contribute, joining the group helps us all a lot because you can get instant feedback.