Skip to content

Commit e4ff0c6

Browse files
feat: Expand social media analyzer to support Kuaishou
This commit adds support for the Kuaishou social network to the social media analyzer. - Adds 'kuaishou' to the list of supported platforms in `social_media_analyzer/main.py`. - Adds the legitimate domains for Kuaishou (`kuaishou.com`, `kwai.com`, `kwai.net`) to `social_media_analyzer/heuristics.py`. - Adds test cases to `social_media_analyzer/test_runner.py` to verify the new functionality.
1 parent d6e7478 commit e4ff0c6

File tree

7 files changed

+10
-1
lines changed

7 files changed

+10
-1
lines changed
0 Bytes
Binary file not shown.
56 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
289 Bytes
Binary file not shown.

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+
"kuaishou": ["kuaishou.com", "kwai.com", "kwai.net"],
1112
"tinder": ["tinder.com", "gotinder.com"],
1213
"snapchat": ["snapchat.com"],
1314
"wechat": ["wechat.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"
47+
"sharechat", "messenger", "qzone", "qq", "vimeo", "musical.ly", "kuaishou"
4848
])
4949

5050
while True:

social_media_analyzer/test_runner.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@
2626
"Bank Transfer Fraud": {
2727
"message": "Urgent invoice payment required. Please transfer the amount to IBAN DE89370400440532013000, SWIFT/BIC COBADEFFXXX. Your account will be suspended otherwise.",
2828
"platform": "banks"
29+
},
30+
"Kuaishou Benign Case": {
31+
"message": "Check out my new video on www.kwai.com/my-awesome-video! #kuaishou",
32+
"platform": "kuaishou"
33+
},
34+
"Kuaishou Phishing Attempt": {
35+
"message": "URGENT: Your Kuaishou account is at risk! Verify at http://kuaishou-login.net to secure it and get free followers.",
36+
"platform": "kuaishou"
2937
}
3038
}
3139

0 commit comments

Comments
 (0)