Do your friends not have a Twitter but you still want to share them your hilarious tweets? Look no further! This will automatically send the people you added the tweet as a text message whenever you tweet!
Report Bug
·
Request Feature
To get a local copy up and running follow these simple steps.
- Pipenv
pip install pipenv
Pip should be fine as well. The only package to be installed is python-twitter
-
Clone the repo
git clone https://github.com/viraatdas/Text-New-Tweets.git
-
Pipenv environment - or you can use Pip
pipenv install
-
Environment file
mv config_template.py config.py
-
Access and API tokens for the Twitter API
-
Update the values in
config.py
accordingly
python3 send_text.py
config.py
can be edited while the code is running. If you look at send_text.py
, I reload config
every time there is a call to the Twitter API. Hopefully this makes it easy to add or remove phone numbers.
The code runs every 15 minutes. If there is a new tweet sent, it sends that out otherwise waits 15 minutes again.
If the tweet ends with a "*", then it won't be texted to the users.
I decided to use a free EC2 instance. Using the screen command, I simply let the code run in perpetuity.
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Viraat - @therealviraat - viraat.laldas@gmail.com
README template based on othneildrew