Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dahlitzflorian/python-twitter-bot
Lightweight twitter bot
https://github.com/dahlitzflorian/python-twitter-bot
docker docker-image dockerfile python python-3 python-twitter-bot python3 twitter twitter-bot
Last synced: about 17 hours ago
JSON representation
Lightweight twitter bot
- Host: GitHub
- URL: https://github.com/dahlitzflorian/python-twitter-bot
- Owner: DahlitzFlorian
- License: mit
- Created: 2018-01-01T15:15:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T06:35:02.000Z (about 2 years ago)
- Last Synced: 2024-11-11T00:25:06.544Z (about 2 months ago)
- Topics: docker, docker-image, dockerfile, python, python-3, python-twitter-bot, python3, twitter, twitter-bot
- Language: Python
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Twitter Bot
## Description
A easy build and lightweight twitter bot written in Python. For this project I also created batch-files
to run the script in background and to start it easily globally via the terminal, but I decided not to
publish it in this repo.Feel free to use it.
## Usage
Simply create some text-file w/ the tweets in it separated by `§§§`. Run the script with:
`twitter-bot.py `Given the `example.txt` file containing two sample tweets, you can call
the script as follows:```bash
$ python twitter-bot.py example.txt 10
```This will publish both tweets with ten seconds between each.
### Docker
If you want to run it in a Docker container to keep things clean,
please insert your twitter API credentials into the `config.py` file,
write your tweets into the provided `example.txt` file and run the following
two commands:```bash
$ docker image build -t twitter-bot .
$ docker container run -it --rm --name twitter-bot twitter-bot
```This will publish the tweets with a delay of ten seconds between each.
## To Do
- provide a way to specify the input file and delay via Docker `ARG`
and `ENV`