Skip to content

viseryon/twitter_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

259 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Bot for WIG Heatmaps

This project is a Twitter bot that automatically posts heatmaps of the WIG (Warsaw Stock Exchange Index) performance. The bot generates heatmaps using financial data and tweets them at specified intervals.

Heatmap Example 1

Features

  • Daily Heatmaps: Posts daily performance heatmaps.
  • Weekly Heatmaps: Posts weekly performance heatmaps.
  • Monthly Heatmaps: Posts monthly performance heatmaps.
  • Quarterly Heatmaps: Posts quarterly performance heatmaps.
  • Yearly Heatmaps: Posts yearly performance heatmaps.
  • YTD Heatmaps: Posts year-to-date performance heatmaps on random days.

Heatmap Example 2

Dependencies

The project requires Python 3.11 or higher. The dependencies are managed using pyproject.toml:

Installation

This project uses uv for dependency management. To install the project dependencies using uv, run:

uv sync

This will install all the dependencies specified in the pyproject.toml file.

Configuration

  1. Create a keys.py file with your Twitter API credentials:

       consumer_key = "your_consumer_key"
       consumer_secret = "your_consumer_secret"
       access_token = "your_access_token"
       access_token_secret = "your_access_token_secret"
  2. Ensure the wig_comps.csv file is present in the project directory. This file should contain the WIG components data.

Usage

Run the bot using the following command:

uv run main.py

The bot will authenticate with Twitter, download the necessary financial data, generate heatmaps, and post them according to the schedule.

Logging

The bot logs its activities to app.log. You can check this file for detailed logs of the bot's operations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages