Git Product home page Git Product logo

twitter-actions-bot's Introduction

Twitter Bot

Welcome to the Twitter Bot! This bot allows you to perform various actions with your Twitter accounts, including transferring tweets from Telegram to Twitter, checking account statuses, following accounts, changing usernames, and updating profile pictures.

Table of Contents

Prerequisites

  • Python 3.11 or higher (tested on 3.12.1)
  • Required Python packages:
    • asyncio
    • colorama
    • tweepy-self
    • python-telegram-bot
    • aiohttp

Ensure you have the necessary API keys and tokens for CapSolver and Telegram.

Installation

  • Clone the repository or download the script

  • Install the required Python packages:

    pip install -r requirements.txt
  • Set your CapSolver API key, Telegram Bot Token, and Telegram Chat ID in the script

  • Set your accounts, proxies, comments and config.py

Configuration

accounts.txt

This file should contain your accounts in the following format:

username:password:email:auth_token

or just

auth_token

Each account should be on a new line. You can provide either the username, password, email, and auth_token separated by colons, or just the auth_token.

proxy.txt

This file should contain your proxies, with each proxy on a new line:

http://proxy1:port:login:password
http://proxy2:port:login:password

If you have more accounts than proxies, the proxies will be reused for the remaining accounts.

comments.txt

This file should contain a list of comments in the following format:

[
    "GM", "GN!", "Hello", "DYOR", "Bye", "Good code",
    "Awesome tweet", "NGMI"
]

config.py configuration

CapSolver API Key: Needed to solve captcha on twitter automatically

CAPSOLVER_API_KEY = 'your_capsolver_api_key'

Telegram Bot Token: Needed to interact with the Telegram API

TELEGRAM_BOT_TOKEN = 'your_telegram_bot_token'

Telegram Chat ID: The ID of the Telegram chat where the bot will send messages

TELEGRAM_CHAT_ID = 'your_telegram_chat_id'

Number of Likes/Retweets/Replies/Quotes: Configure how many likes, retweets, replies, and quotes the bot should perform. Setting a value to 0 means the action will not be performed

NUM_LIKES = 10
NUM_RETWEETS = 5
NUM_REPLIES = 3
NUM_QUOTES = 0

Delay Between Actions: Set the minimum and maximum delay between bot actions in seconds

MIN_DELAY = 10
MAX_DELAY = 20

Accounts to Follow: List of accounts the bot should follow

list_of_accounts_to_follow = [
    'ElonMusk', 'ElonMusk2',
]

New Usernames: List of new usernames for the namechanger module

list_of_new_usernames = [
    'New_username1', 'New_username2'
]

Usage

Run the script:

main.py

Actions

Tg to Twitter: Transfers tweets from Telegram to Twitter. Requires you to send the Twitter link to the Telegram bot.

Accounts Checker: Checks the status of Twitter accounts.

Follow: Follows the accounts listed in list_of_accounts_to_follow.

Namechanger: Changes the username of your Twitter account to one of the names listed in list_of_new_usernames.

Pfpchanger: Changes the profile picture of your Twitter account to one of the puctures from Images folder.

Contributing

Feel free to submit issues and pull requests for new features, bug fixes, or enhancements.

License

This project is licensed under the MIT License. See the LICENSE file for details.

twitter-actions-bot's People

Contributors

wert112 avatar

Stargazers

 avatar

Watchers

 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.