Giter Site home page Giter Site logo

tonyschneider / slack_twitter_integration_bot Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 16 KB

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 Twitte

Python 100.00%

slack_twitter_integration_bot's Introduction

Slack & Twitter Integration Bot (QM Exercise)

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.

Requirements

  • python version >= 3.7.4
  • see requirements.txt file that includes all necessary pip installations

How to run? + install

  • 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
  • python3 client.py 2>qm_exercise.log

Project Organization

├── 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

Authors

slack_twitter_integration_bot's People

Contributors

tonyschneider avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.