Skip to content

Commit 425eaa8

Browse files
feat: expand tools to include Douyin
This commit expands the social media analyzer to include support for Douyin. - Adds 'douyin' to the list of supported platforms in `main.py`. - Adds platform-specific advice for Douyin in `fake_profile_detector.py`. - Adds the legitimate domain for Douyin in `heuristics.py`. - Adds Python-specific entries to `.gitignore` to avoid committing compiled files.
1 parent 72f1cc7 commit 425eaa8

File tree

10 files changed

+16
-1
lines changed

10 files changed

+16
-1
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ logs
44
npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
7+
8+
# Python
9+
__pycache__/
10+
*.pyc
11+
*.pyo
12+
*.pyd
13+
.Python
14+
env/
15+
venv/
716
lerna-debug.log*
817

918
# Diagnostic reports (https://nodejs.org/api/report.html)
-135 Bytes
Binary file not shown.
Binary file not shown.
-7.9 KB
Binary file not shown.
-6.16 KB
Binary file not shown.
-7.16 KB
Binary file not shown.
-2.5 KB
Binary file not shown.

social_media_analyzer/fake_profile_detector.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@
134134
"Be wary of profiles that post a large amount of spam or promotional content.",
135135
"Check for the 'verified' badge on profiles of public figures.",
136136
"Do not engage with users who ask for personal information or money in private chat."
137+
],
138+
"douyin": [
139+
"Be cautious of accounts that share QR codes in videos or comments, as they may lead to malicious websites.",
140+
"Look for accounts with very few original videos but a high number of followers.",
141+
"Be wary of users who send direct messages with links to external shopping or gambling sites."
137142
]
138143
}
139144

social_media_analyzer/heuristics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"instagram": ["instagram.com", "instagr.am"],
99
"whatsapp": ["whatsapp.com", "wa.me"],
1010
"tiktok": ["tiktok.com"],
11+
"douyin": ["douyin.com"],
1112
"kuaishou": ["kuaishou.com", "kwai.com", "kwai.net"],
1213
"tinder": ["tinder.com", "gotinder.com"],
1314
"snapchat": ["snapchat.com"],

social_media_analyzer/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def analyze_social_media():
4444
"wechat", "telegram", "twitter", "pinterest", "linkedin", "line",
4545
"discord", "teams", "zoom", "amazon", "alibaba", "youtube", "skype",
4646
"vk", "reddit", "email", "viber", "signal", "badoo", "binance",
47-
"sharechat", "messenger", "qzone", "qq", "vimeo", "musical.ly", "kuaishou"
47+
"sharechat", "messenger", "qzone", "qq", "vimeo", "musical.ly", "kuaishou", "douyin"
4848
])
4949

5050
while True:

0 commit comments

Comments
 (0)