2 parents c87b2e2 + 20a9a21 commit d295b98Copy full SHA for d295b98
2 files changed
README.md
@@ -6,7 +6,7 @@ A Python script to detect and block mass-following bot accounts from your GitHub
6
7
## Features
8
- Scans your followers
9
-- Detects accounts following over a threshold (default: 5000)
+- Detects accounts following over a threshold (default: 4000)
10
- Blocks suspected bots
11
- Automates daily cleanup using GitHub Actions
12
main.py
@@ -28,7 +28,7 @@ def get_followers(username: str) -> List[str]:
28
return followers
29
30
31
-def is_mass_follower(username: str, threshold: int = 5000) -> bool:
+def is_mass_follower(username: str, threshold: int = 4000) -> bool:
32
url = f"{GITHUB_API_URL}/users/{username}"
33
res = requests.get(url, headers=HEADERS)
34
if res.status_code != 200:
0 commit comments