A lightweight shell for Twitter botmaking
This is for Python version 3
Remember:
- Generally do NOT put your API credentials in your source code
- API creds are sensitive information that can control access to accounts
- I'm only doing this so you can have an easy demo
Here are some things you should make sure are done before working with this repository.
-
Install Python3 You can get this for free on the Python website - https://www.python.org/downloads/
-
Create a Python virtual environment
python -m venv my_venv
-
Turn on the virtual environment On Mac or Linux
source my_venv/bin/activate
On Windowsmy_venv\Scripts\activate
After this your terminal/command prompt should look something like this(my_venv) $
or this(my_venv) C:\Users\yourusername>
. -
Install Twython Now that your Python virtual environment is turned on you should be able to install Twython with:
pip install twython
But if you have any issues you can check the documentation here: https://twython.readthedocs.io/en/latest/usage/install.html
-
Then you can start working in the sparrow.py file to get your bot up and running.
-
When you're done, run the program in your terminal or command prompt:
python sparrow.py