Simple Twitter Bot with the following features:
- Monitor RSS feeds and create tweets from RSS entries
- Automatic retweet of monitored twitter accounts
- Human emulation
- Clona el repositorio:
git clone https://github.com/mercaderd/TwitterBot.git
- Instalar dependencias:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install wget python3 python3-pip python3-venv
- Crear fichero .env a partir del ejemplo incluido:
cp .env.dist .env
- Edita .env para establecer los valores de configuración:
nano .env
Modifica las siguientes líneas según la configuración de tu sistema:
# CHANGE THIS SECTION enter the corresponding information from your Twitter application:
CONSUMER_KEY=put_here_your_twitter_consumer_key
CONSUMER_SECRET=put_here_your_twitter_consumer_secret
ACCESS_KEY=put_here_your_twitter_access_key
ACCESS_SECRET=put_here_your_twitter_access_secret
# CHANGE THIS SECTION add usernames for automatic retweet
usernames=AEPD_es,osiseguridad,incibe_cert,EU_EDPB
Pulsa Ctrl+x para salir y guarda los cambios.
- Crea un entorno virtual, actívalo e instala las dependencias
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
- Ejecuta la aplicación:
./run.sh