forked from 3asyPe/twitter-automation
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodule_settings.py
More file actions
120 lines (102 loc) · 4.75 KB
/
Copy pathmodule_settings.py
File metadata and controls
120 lines (102 loc) · 4.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import enum
class TwitterModulesNames(str, enum.Enum):
FOLLOW = "FOLLOW"
UNFOLLOW = "UNFOLLOW"
TWEET = "TWEET"
RETWEET = "RETWEET"
LIKE = "LIKE"
class TwitterFollowModes(str, enum.Enum):
# Follow accounts to one user by username
FOLLOW_ONE_USER = "FOLLOW_ONE_USER"
# Follow users from file
FOLLOW_USERS_FROM_FILE = "FOLLOW_USERS_FROM_FILE"
# Follow accounts between each other
FOLLOW_ACCOUNTS_BETWEEN_EACH_OTHER = "FOLLOW_ACCOUNTS_BETWEEN_EACH_OTHER"
class TwitterUnfollowModes(str, enum.Enum):
# Unfollow one account by username
UNFOLLOW_ONE_USER = "UNFOLLOW_ONE_USER"
# Unfollow accounts from file
UNFOLLOW_USERS_FROM_FILE = "UNFOLLOW_USERS_FROM_FILE"
class TwitterTweetModes(str, enum.Enum):
# Tweet tweets by inputting them in console for every account
TWEET_FROM_INPUT = "TWEET_FROM_INPUT"
# Tweet tweets from json file
TWEET_TWEETS_FROM_FILE = "TWEET_TWEETS_FROM_FILE"
class TwitterRetweetModes(str, enum.Enum):
# Retweet tweets from text file containing TweetsIDs
RETWEET_TWEETS_FROM_FILE = "TWEET_TWEETS_FROM_FILE"
class TwitterLikeModes(str, enum.Enum):
# Like tweets from text file containing TweetsIDs
LIKE_TWEETS_FROM_FILE = "TWEET_TWEETS_FROM_FILE"
MODULES_SETTINGS = {
TwitterModulesNames.FOLLOW: {
# Follow accounts to one user by username
# TwitterFollowModes.FOLLOW_ONE_USER
#
# Follow accounts to users from file
# TwitterFollowModes.FOLLOW_USERS_FROM_FILE
#
# Follow accounts between each other
# TwitterFollowModes.FOLLOW_ACCOUNTS_BETWEEN_EACH_OTHER
"mode": TwitterFollowModes.FOLLOW_ACCOUNTS_BETWEEN_EACH_OTHER,
# For FOLLOW_ONE_USER mode
"username": "easypeoff",
# For FOLLOW_USERS_FROM_FILE mode
"users_file": "data/users_to_follow.txt",
# For FOLLOW_USERS_FROM_FILE and FOLLOW_ACCOUNTS_BETWEEN_EACH_OTHER modes
"min_number_of_accounts": 2, # Minimum number of accounts to subscribe
"max_number_of_accounts": 4, # Maximum number of accounts to subscribe
# !WARNING! On big number of accounts it can red flag your accounts and lead to ban
"all_accounts": True, # Subscribe all accounts between each other
},
TwitterModulesNames.UNFOLLOW: {
# Unfollow one account by username
# TwitterUnfollowModes.UNFOLLOW_ONE_USER
#
# Unfollow accounts from file
# TwitterUnfollowModes.UNFOLLOW_USERS_FROM_FILE
"mode": TwitterUnfollowModes.UNFOLLOW_USERS_FROM_FILE,
# For UNFOLLOW_ONE_USER mode
"username": "easypeoff",
# For UNFOLLOW_USERS_FROM_FILE mode
"users_file": "data/users_to_unfollow.txt",
"min_number_of_accounts": 2, # Minimum number of accounts to subscribe
"max_number_of_accounts": 4, # Maximum number of accounts to subscribe
# !WARNING! On big number of accounts it can red flag your accounts and lead to ban
"all_accounts": True, # Subscribe all accounts between each other
},
TwitterModulesNames.TWEET: {
# Tweet tweets by inputting them in console for every account
# TwitterTweetModes.TWEET_FROM_INPUT
#
# Tweet tweets from json file
# TwitterTweetModes.TWEET_TWEETS_FROM_FILE
"mode": TwitterTweetModes.TWEET_FROM_INPUT,
"min_number_of_tweets": 0, # Minimum number of tweets to post
"max_number_of_tweets": 5, # Maximum number of tweets to post
"all_tweets": True, # Post all tweets from file
"tweets_file": "data/tweets.json", # File with tweets
# Avoid duplicates on different accounts
"post_only_unique_tweets_on_all_accounts": True,
# Delete written tweets from file to avoid duplicates on next run
"delete_written_tweets_from_file": True,
},
TwitterModulesNames.RETWEET: {
# Retweet tweets from text file containing TweetsIDs
# TwitterRetweetModes.RETWEET_TWEETS_FROM_FILE
"mode": TwitterRetweetModes.RETWEET_TWEETS_FROM_FILE,
"min_number_of_retweets": 0, # Minimum number of tweets to retweet
"max_number_of_retweets": 5, # Maximum number of tweets to retweet
"all_tweets": True, # Retweet all tweets from file
"tweets_file": "data/retweets.txt", # File with tweets to retweet
},
TwitterModulesNames.LIKE: {
# Like tweets from text file containing TweetsIDs
# TwitterLikeModes.LIKE_TWEETS_FROM_FILE
"mode": TwitterLikeModes.LIKE_TWEETS_FROM_FILE,
"min_number_of_likes": 0, # Minimum number of tweets to like
"max_number_of_likes": 5, # Maximum number of tweets to like
"all_tweets": True, # Like all tweets from file
"tweets_file": "data/likes.txt", # File with tweets to retweet
}
}