├── requirements.txt ├── config.yaml ├── README.md └── bot.py /requirements.txt: -------------------------------------------------------------------------------- 1 | tweepy 2 | PyYAML>=5.3 3 | -------------------------------------------------------------------------------- /config.yaml: -------------------------------------------------------------------------------- 1 | ACCOUNTS: 2 | - USERNAME: user_1 3 | BEARER_TOKEN: AAAAAAAAAAAAAAxxxxxxxxxxx 4 | CONSUMER_KEY: xKvfBnz0xxxxxxxxxxxxxxxxx 5 | CONSUMER_SECRET: aWZe8qZh2Kxxxxxxxxxxxx 6 | ACCESS_TOKEN: 1387755xxxxxxxxxxxxxxxxxx 7 | ACCESS_TOKEN_SECRET: EiJ8Y3kZxxxxxxxxxx 8 | TEXT: "Join guys @mention1 @mention2 #solana #BTC" 9 | - USERNAME: user_2 10 | BEARER_TOKEN: AAAAAAAAAAAAAAxxxxxxxxxxx 11 | CONSUMER_KEY: xKvfBnz0xxxxxxxxxxxxxxxxx 12 | CONSUMER_SECRET: aWZe8qZh2Kxxxxxxxxxxxx 13 | ACCESS_TOKEN: 1387755xxxxxxxxxxxxxxxxxx 14 | ACCESS_TOKEN_SECRET: EiJ8Y3kZxxxxxxxxxx 15 | TEXT: "Join guys @mention1 @mention2 #solana #BTC" 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MassTweet 2 | 3 | ![MassTweet](https://i.ibb.co/F5sZ0gR/ss.png) 4 | 5 | Created By viloid (github.com/vsec7) 6 | 7 | *** NOTE : USE AT YOUR OWN RISK! *** 8 | 9 | ## • Features 10 | - Multi accounts 11 | - Follow 12 | - Like 13 | - Retweet 14 | - Reply 15 | - Quote 16 | 17 | ## • Requirements 18 | - Python3 19 | 20 | ## • Installation 21 | 22 | ```bash 23 | git clone https://github.com/vsec7/MassTweet.git 24 | ``` 25 | 26 | ## CREATE TWITTER API TOKEN AND KEY 27 | https://developer.twitter.com/en/portal/dashboard 28 | 29 | * Dont ask me about this section! 30 | 31 | ## • Edit Configurations *config.yaml* file 32 | 33 | ```env 34 | ACCOUNTS: 35 | - USERNAME: user_1 36 | BEARER_TOKEN: AAAAAAAAAAAAAAxxxxxxxxxxx 37 | CONSUMER_KEY: xKvfBnz0xxxxxxxxxxxxxxxxx 38 | CONSUMER_SECRET: aWZe8qZh2Kxxxxxxxxxxxx 39 | ACCESS_TOKEN: 1387755xxxxxxxxxxxxxxxxxx 40 | ACCESS_TOKEN_SECRET: EiJ8Y3kZxxxxxxxxxx 41 | TEXT: "Join guys @mention1 @mention2 #solana #BTC" 42 | - USERNAME: user_2 43 | BEARER_TOKEN: AAAAAAAAAAAAAAxxxxxxxxxxx 44 | CONSUMER_KEY: xKvfBnz0xxxxxxxxxxxxxxxxx 45 | CONSUMER_SECRET: aWZe8qZh2Kxxxxxxxxxxxx 46 | ACCESS_TOKEN: 1387755xxxxxxxxxxxxxxxxxx 47 | ACCESS_TOKEN_SECRET: EiJ8Y3kZxxxxxxxxxx 48 | TEXT: "Join guys @mention1 @mention2 #solana #BTC" 49 | ``` 50 | 51 | ## • How to Run? 52 | ```bash 53 | cd MassTweet 54 | pip install -r requirements.txt 55 | python bot.py 56 | ``` 57 | 58 | ## • Donate 59 | 60 | SOL Address : viloid.sol 61 | 62 | BSC Address : 0xd3de361b186cc2Fc0C77764E30103F104a6d6D07 63 | -------------------------------------------------------------------------------- /bot.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # Simple Mass Tweet (follow, Like, RT, Reply, Quote) 3 | # Created By Viloid ( github.com/vsec7 ) 4 | # Use At Your Own Risk 5 | import tweepy, yaml 6 | 7 | def main(): 8 | with open('config.yaml') as cfg: 9 | conf = yaml.load(cfg, Loader=yaml.FullLoader) 10 | 11 | url = input('[?] Tweet Link? ') 12 | link = url.split('/') 13 | follow = input(f'[?] Follow {link[3]} [y/Y] *Or enter if dont needed? ').lower() 14 | like = input(f'[?] Like [y/Y] *Or enter if dont needed? ').lower() 15 | rt = input(f'[?] Retweet [y/Y] *Or enter if dont needed? ').lower() 16 | reply = input(f'[?] Reply [y/Y] *Or enter if dont needed? ').lower() 17 | quote = input(f'[?] Quote [y/Y] *Or enter if dont needed? ').lower() 18 | 19 | for acc in conf['ACCOUNTS']: 20 | try: 21 | 22 | client = tweepy.Client( 23 | bearer_token=acc['BEARER_TOKEN'], 24 | consumer_key=acc['CONSUMER_KEY'], 25 | consumer_secret=acc['CONSUMER_SECRET'], 26 | access_token=acc['ACCESS_TOKEN'], 27 | access_token_secret=acc['ACCESS_TOKEN_SECRET'], 28 | wait_on_rate_limit=True 29 | ) 30 | 31 | me = client.get_me().data.username 32 | 33 | if follow == "y": 34 | uid = client.get_user(username=link[3]).data.id 35 | foll = client.follow_user(target_user_id=uid) 36 | print(f"[@{me}] Follow: {foll.data['following']}") 37 | 38 | if like == "y": 39 | l = client.like(tweet_id=link[5]) 40 | print(f"[@{me}] Like: {l.data['liked']}") 41 | 42 | if rt == "y": 43 | ret = client.retweet(tweet_id=link[5]) 44 | print(f"[@{me}] Retweet: {ret.data['retweeted']}") 45 | 46 | if reply == "y": 47 | try: 48 | rep = client.create_tweet(text=f"{acc['TEXT']}", in_reply_to_tweet_id=link[5]) 49 | print(f"[@{me}] Reply: https://twitter.com/{me}/status/{rep.data['id']}") 50 | except: 51 | print(f"[@{me}] Reply: False") 52 | 53 | if quote == "y": 54 | try: 55 | q = client.create_tweet(text=f"{acc['TEXT']} {url}", reply_settings='following') 56 | print(f"[@{me}] Quote: https://twitter.com/{me}/status/{q.data['id']}") 57 | except: 58 | print(f"[@{me}] Quote: False") 59 | 60 | print("----------------------------") 61 | 62 | except: 63 | print(f"[ERROR][{acc['USERNAME']}] INVALID TWITTER API CREDENTIALS") 64 | 65 | if __name__ == '__main__': 66 | try: 67 | main() 68 | except Exception as err: 69 | print(f"{type(err).__name__} : {err}") 70 | --------------------------------------------------------------------------------