GithubHelp home page GithubHelp logo

farzinadil / dogefather Goto Github PK

View Code? Open in Web Editor NEW
59.0 3.0 9.0 5.78 MB

Twitter Bot that sends SMS alerts when influencers like Elon Musk tweet about stocks or cryptos.

License: GNU General Public License v3.0

Python 98.23% Shell 1.77%
stocks cryptocurrency twitter twitter-api twitter-bot elon elonmusk elon-musk nasdaq nyse

dogefather's Introduction

Dogefather

GitHub last commit GitHub closed issues GitHub issues GitHub Repo stars GitHub forks

About

This program streams tweets from Elon Musk (or other influencers) and checks if the tweets contain references to popular stocks or cryptocurrencies. If the tweet contains text, it will scan the text for potential names or tickers of commonly traded stocks and popular cryptocurrencies. If the tweet contains images, the program will use Google VisionAI to annotate the images to determine if images contain references to stocks or cryptos. It can detect objects in images, logos, and text in images. If the program finds images or text referencing stocks or cryptocurrencies, it will send an SMS to the configured phone number using the Twilio API.

Installation

Requiremmts

  1. Python 3.8
  2. Twitter developer account
  3. Twilio account (trial account is fine)
  4. Google Cloud Platform account (for image recognition)

Instructions

  1. Clone repository
  2. cd Dogefather
  3. pip3 install -r requirements.txt
  4. Create a .env file and add Twitter API consumer key, consumer secret key, and bearer token as shown in .env.example
  5. Add the Twilio account sid and Twilio auth token to the .env file as shown in the .env.example file
  6. Add Google Vision API key to the .env file as shown in the .env.example file
  7. Add your phone number with +1 (ex: '+1800XXXXXXX') and your Twilio phone number in the same format as shown in .env.example
  8. python3 TweetBot.py

Examples

Finding stock/crypto in an image

Finding stock in tweet

Finding crypto in tweet

Sending alerts

Notes

stocks.json contains 100 most popular stocks and cryptos.json contains 5 popular cryptos. moreStocks.json contains all stocks and moreCryptos.json contains all cryptos. See https://cloud.google.com/vision/docs/setup for a quickstart of the Vision API.

What's Next

  1. Streaming tweets from more accounts rather than just Elon Musk.

dogefather's People

Contributors

farzinadil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dogefather's Issues

Google Vision API Key

Do you have resource you can point to for obtaining the Vision AI API key. I have made a service account on the Google Cloud Platform and have been able to download a json file containing some credentials. However, I can't seem to find where I can get a api key exclusively for Google Cloud Vision AI. I'm pretty sure I am not using the correct API key as well since my own testing seems to lead to the program printing out error whenever it grabs a tweet with a picture.

[Feature request] websocket support

Hi, its a great program, but i am curious why dont you use websocket instead of rest api call? Because Websocket is much more faster and only push message when there is an updates, while rest api calls are quite slow and consumes more resources.

Video Tutorial

Hi I set up the bot based on the instructions given in the readme file but am getting a 403 "something went wrong" error, repeatedly upon running it. Would you be able to post a video of setting up the bot, following the instructions step by step?

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.