After about a month of on and off development I am proud to say that
Today's script is for the site Reddit.com. I've never used their API to post content, so this will be something new. The plan is to use PRAW and push a text update.
Post content to Reddit.com, maybe read some.
pip install praw
Setup a script app on Reddit, get the oAuth keys and copy config.py.example to config.py. Finally add your keys, passwords and such to config.py.
Link to app repo on Github:
03 git repo
GET THE TOP 3 SUBMISSIONS FOR THE DAY IN /R/ALL
GET THE TOP 10 SUBMISSIONS FOR THE DAY IN /R/ALL
python redd_it.py -n 10
GET THE TOP 5 SUBMISSIONS FOR THE DAY IN YOUR SUBREDDIT OF CHOICE [EXAMPLE: /R/ETHEREUM]
python redd_it.py -s ethereum
GET THE TOP 10 SUBMISSIONS FOR THE DAY IN YOUR SUBREDDIT OF CHOICE [EXAMPLE: /R/ETHEREUM]
python redd_it.py -s ethereum -n 10
POST TEST POST TO 'REDDITAPITEST'
The -S argument triggers the post function, -t title and -u url are also required
python redd_it.py -S -t "test post" -u http://www.spudz.org
POST TO SUBREDDIT OF YOUR CHOICE [EXAMPLE: /R/JJSCHROTESTREDDIT]
python redd_it.py -S -s jjschro_test_reddit -t "my next post" -u https://www.spudz.org
Today I learned the PRAW module to get and post content to the website reddit.com.
While documentation is lengthy, I wish that they had some quickstart examples to help you get up and running right away.