Twitter bot to tweet uplifting images at twitter users
Project description
UpBeatBot
Twitter bot to tweet uplifting images at twitter users
Usage
Simply tweet a mention at UpBeatBot (@UpBeatBot) on Twitter to receive a cute picture tweeted at you
Running UpBeatBot
To run UpBeatBot on your own, download the source code and create a .env file that contains your twitter bot's authentication keys. You can copy the .example_env file to .env and replace with your relevant keys
- Follow the guide on https://dev.twitter.com/oauth/overview/application-owner-access-tokens to register your app and get credentials
Next, create a Python virtual environment running python3. Assuming you have the virtualenv
package installed, you can run the following command in this directory to get it set up:
virtualenv -p $(which python3) venv
Activate the virtual environment by entering source venv/bin/activate
from the project directory
Finally, install the requirements by entering pip install -r requirements.txt
from the project root. This will install the needed dependencies in the virtual environment for use by the program
Runing ./main.py
will start the TwitterBot, it will log information about program execution to a log file (dev.log)
in the directory UpBeatBot is stored in
Running Unit Tests
To run the unit tests for this project, enter python -m unittest discover -v
from the project root. You'll see the output
of every test method, and if any fail an explanation as to why they failed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for upbeatbot-0.0.2.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eff55a699d402d141a63e3d8620c7a9474d55216725148415d188e66ad03d92 |
|
MD5 | cd951f7654255c8c14f2aa1b2f8556c1 |
|
BLAKE2b-256 | 56e0b4f367b56b4541e7683dd24720014405fa54ee5028354bf3eb5bce9a2327 |
Hashes for upbeatbot-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66673c153f28f5880088f06f3354ee7b593a811ea03df80a79d3129fcfd342b8 |
|
MD5 | 60f555dc9723333735d5e97972a6fe51 |
|
BLAKE2b-256 | 20a20a632ccdccab3390fbae4a8f1b53e88fe66111056b5e6ecdaa59480175ba |