An automated Twitter bot that fetches and posts the latest tech news at regular intervals.
- Fetches the latest tech news using NewsAPI
- Automatically generates relevant hashtags
- Tweets news articles every 3 hours
- Lightweight and easy to configure
- Python 3.8+
- Twitter API credentials
- NewsAPI key
git clone git@github.com:selimAP/techRadar24.git
cd techRadar24python3 -m venv venv
source venv/bin/activatepip install -r requirements.txtCreate a file named .env in the project root directory and add the following content:
TWITTER_API_KEY=your_api_key
TWITTER_API_SECRET_KEY=your_api_secret_key
TWITTER_ACCESS_TOKEN=your_access_token
TWITTER_ACCESS_TOKEN_SECRET=your_access_token_secret
TWITTER_BEARER_TOKEN=your_bearer_token
NEWS_API_KEY=your_newsapi_keyTo start the bot, run:
python bot.py