Slack Twitter Integration Bot is a Python project created by Tony Schneider that integrates Twitter with Slack to provide users with real-time updates on tweets related to specific keywords or hashtags. The project is built using the Slackbot and Tweepy Python libraries and includes a user interface that allows users to subscribe to specific Twitter accounts or keywords.
The application utilizes the Twitter API to retrieve the latest tweets related to the subscribed accounts or keywords and sends them to a designated Slack channel. The Slackbot integration allows users to interact with the bot by sending commands to subscribe or unsubscribe to specific accounts or keywords.
- python version >= 3.7.4
- see requirements.txt file that includes all necessary pip installations
- python3 -m pip install -r requirement.txt
- Fill the following keys at the slack and twitter configuration files that located in configurations folder:
- TW:
- access_token
- access_token_secret
- api_key
- api_key_secret
- personal_username
- Slack:
- bot_user_oauth_token
- default_channel_id
- TW:
- python3 client.py 2>qm_exercise.log
├── requirements.txt <- Requirements file (pip installations).
│
├── client.py <- Main file. This file executes the project.
│
|── wrappers
| ├── requests_wrapper.py <- wraps all project's requests.
| ├── slack_bot_wrapper.py <- wraps all Slack api requests by using 'requests' lib.
| ├── twitter_wrapper.py <- wraps all TW api requests by using tweepy (An external python lib).
| └── config_wrapper.py <- loads the configurations files.
└── configurations
├── logging.yaml <- logging lib config
├── slack_configurations.yaml <- slack configs
└── twitter_configurations.yaml <- tw configs
- Tony Schneider - Programming - TonySchneider