https://github.com/healeycodes/reddit-bot-tutorial
Build a friendly bot to keep you company on Reddit! :robot:
https://github.com/healeycodes/reddit-bot-tutorial
Last synced: about 1 year ago
JSON representation
Build a friendly bot to keep you company on Reddit! :robot:
- Host: GitHub
- URL: https://github.com/healeycodes/reddit-bot-tutorial
- Owner: healeycodes
- License: mit
- Created: 2019-03-24T22:28:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-25T12:28:30.000Z (about 7 years ago)
- Last Synced: 2024-10-05T17:43:16.803Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 146 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This repository contains the files that accompany [my tutorial](https://healeycodes.github.io/tutorial/python/beginners/webdev/2019/03/25/reddit-bot-tutorial.html) for writing a Reddit bot!

These brief instructions should get you up and running. Refer to my tutorial for a complete walkthrough 😊
Remember to follow Reddit's [bottiquette](https://www.reddit.com/wiki/bottiquette) at all times!
### Setup
- `pip install praw`
- Create your Reddit script app, and get your client id and client secret:

- Set the following environment variables:
```
$env:CLIENTID='id-here'
$env:CLIENTSECRET='secret-here'
$env:CLIENTUSER='reddit-user-name'
$env:CLIENTPASS='reddit-password'
```
- Pass in comma delimited search phrases, or a single string:
- `python bot.py --search 'phrase one, two, and three' --reply 'found you!'`
### Contributing
You're very welcome to expand the bot or raise any issues.
License: MIT