Skip to content

A bot that fetches tweets from crypto-related Twitter accounts as well as info on CryptoPanic website. Then, English news is translated in French using Deepl in order to be (re)tweeted

License

Notifications You must be signed in to change notification settings

rom1trt/crypto-news-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo Logo

Twitter Crypto News Bot

An awesome bot that enables you to post and translate crypto-related news on your Twitter account.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. License

About The Project

Being French, I was looking for crypto daily news and analytics on French Twitter accounts in my feed. However, except one or two news' sources, few accounts commented events on a daily basis as well as analyzed technical indicators. This is why I had an idea about a bot that scrapes and retrieves diverse data not only from several twitter accounts, but also from CryptoPanic. Aditionnally, the bot automatically translates the info in foreign languages using Deepl API.

Here's why:

  • Your time should be focused on the most reliable and important news. A project that helps others being kept updated of this fast-paced crypto-world.
  • You shouldn't be doing the same tasks over and over like (re)tweeting and translating news and analytics.

The bot is specifically tailored for my case (being French and chose my news' sources). I'll be adding more in the near future. You may also suggest changes by forking this repo and creating a pull request or opening an issue.

A list of commonly used resources that I found helpful.

Built With

  • Python
  • Twitter
  • Deepl
  • Youtube
  • Docker

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Installation

  1. Get a free API Key at Deepl
  2. Get a free API Key at CryptoPanic
  3. Get a free API Key at Twitter
  4. Clone the repository
    git clone https://github.com/rom1trt/crypto-news-bot.git
  5. Install python packages (using pip)
    pip install tweepy
    pip install pandas
  6. Enter the corresponding API in config_example.py
    CRYPTOPANIC_API_KEY = '...................................' 
    DEEPL_AUTH_KEY = '........................................' 
    TWITTER_API_KEY = '...................................' 
    TWITTER_API_PRIVATE_KEY = '.........................................' 
    TWITTER_ACCESS_TOKEN = '...................................................' 
    TWITTER_ACCESS_TOKEN_SECRET = '.............................................' 
  7. Rename the config_example.py to config.py
  8. Run/modify the main.py file or create a new script

Docker

You can also build thee dockerfile and make the program run in the background or on a virtual machine.

docker build . (name_of_file)
docker run (name_of_image or image_id)

License

Distributed under the MIT License. See LICENSE for more information.

About

A bot that fetches tweets from crypto-related Twitter accounts as well as info on CryptoPanic website. Then, English news is translated in French using Deepl in order to be (re)tweeted

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published