-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json
More file actions
111 lines (111 loc) · 3.2 KB
/
Copy pathconfig.json
File metadata and controls
111 lines (111 loc) · 3.2 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
{
"deleteOptions": {
"tweets": true,
"retweets": true,
"replies": true,
"likes": false,
"bookmarks": false,
"following": false
},
"executionConfig": {
"maxDeletePerSession": 5,
"deletePerBatch": 3,
"delayBetweenActions": 1500,
"delayJitterMs": 500,
"delayBetweenBatches": 2500,
"pageRefreshDelay": 4000,
"refreshBatchInterval": 2
},
"retryConfig": {
"maxRetries": 3,
"retryDelay": 5000,
"exponentialBackoff": true
},
"followingPlan": {
"mode": "export"
},
"followingManagement": {
"enabled": false,
"outputDir": "data/followings",
"defaultMode": "export",
"rules": {
"keepHandles": [],
"dropHandles": [],
"keepKeywords": [
"ai",
"openai",
"coding",
"developer",
"tech",
"创业",
"编程",
"科技"
],
"dropKeywords": [
"airdrop",
"giveaway",
"casino",
"bet",
"博彩",
"空投",
"抽奖",
"接推广",
"商务合作"
],
"lowInfoCandidate": true
},
"execution": {
"minDelayMs": 6000,
"maxDelayMs": 14000,
"maxUnfollowPerSession": 10,
"requireConfirmFile": true,
"maxConsecutiveFailures": 3,
"cooldownEveryActions": 20,
"cooldownMs": 300000
},
"safety": {
"requireHeadfulForExecute": true,
"stopOnRiskSignals": true,
"riskTextPatterns": [
"unusual activity",
"temporarily restricted",
"temporarily limited",
"rate limit",
"account locked",
"account suspended",
"verify your account",
"账号已锁定",
"账号已暂停",
"异常活动",
"请验证",
"访问受限"
]
}
},
"selectors": {
"tweetMoreButton": "[data-testid='caret'], [aria-label*='更多'][role='button'], [aria-label='More'][role='button']",
"deleteButton": "[role='menuitem'][data-testid*='delete'], [role='menuitem']:has-text('删除'), [role='menuitem']:has-text('Delete')",
"confirmDeleteButton": "[data-testid='confirmationSheetConfirm']",
"tweet": "[data-testid='tweet'], article[role='article']",
"unretweet": "[data-testid='unretweet']",
"unretweetConfirm": "[data-testid='unretweetConfirm'], [data-testid='confirmationSheetConfirm']",
"likeButton": "[data-testid='like']",
"unlikeButton": "[data-testid='unlike']",
"bookmarkButton": "[data-testid='bookmark']",
"removeBookmarkButton": "[data-testid='removeBookmark']",
"followingButton": "[data-testid$='-unfollow'], [data-testid*='unfollow']",
"unfollowButton": "[data-testid$='-unfollow'], [data-testid*='unfollow']",
"unfollowConfirm": "[data-testid='confirmationSheetConfirm']"
},
"urls": {
"login": "https://x.com/i/flow/login",
"profile": "https://x.com/home",
"tweets": "https://x.com/{username}",
"tweetsWithReplies": "https://x.com/{username}/with_replies",
"media": "https://x.com/{username}/media",
"likes": "https://x.com/{username}/likes",
"bookmarks": "https://x.com/i/bookmarks",
"following": "https://x.com/{username}/following",
"reposts": "https://x.com/{username}/reposts"
}
}