Back to Side Projects
Player Clan Finder

Player Clan Finder

A command-line utility that tracks Roblox players across Pet Simulator 99 clans using the game's public API. Built to help clan leaders identify and track players who engage in scamming or other malicious activities.

Tags

PythonRobloxAPI IntegrationCommand LineGamingUtilityTrackingPS99

Technologies Used

PythonRequestsJSONCLIRoblox APIExternal API

Project Links

Project Details

January 15, 2024
Side Project

Quick Stats

8
Tags
6
Technologies

The Story Behind the Project

In early 2024, I was part of a top-tier Pet Simulator 99 clan called LEGIT. Our clan was known for its strong community and fair play. However, everything changed when one of our clan members was scammed by another member, losing all their valuable pets and items.

The incident sparked a massive internal conflict. The victim was devastated, and the clan leadership was determined to ensure justice. We spent countless hours warning other clans about this scammer, trying to prevent them from joining other top clans where they could continue their malicious activities.

During this process, I realized there was a need for a tool that could help clan leaders track players across different clans. Pet Simulator 99 has a public API that allows you to check a player's clan information, so I decided to build a simple command-line utility to automate this process.

Key Features

Player Tracking

Input a Roblox user ID and instantly see which clan they currently belong to

Command Line Interface

Simple CLI tool that can be easily integrated into clan management workflows

Anti-Scam Protection

Help clan leaders identify and track players with malicious intent across the game

Community Safety

Contribute to a safer gaming environment by sharing information about scammers

About Pet Simulator 99

Pet Simulator 99 Game Thumbnail
Play Now
Roblox

Click to visit the game

The Game That Inspired the Tool

Pet Simulator 99 is a popular Roblox game developed by BIG Games that features pet collection, trading, and clan systems. Players can collect various pets with different rarities, trade them with other players, and join clans to participate in group activities and events.

The need of a tool to track players across different clans because of what happened in ours inspired the creation of Player Clan Finder.

Roblox GameActive Community

Technical Implementation

The Player Clan Finder is built as a simple Python command-line utility that leverages Pet Simulator 99's public API. The tool takes a Roblox user ID as input and makes HTTP requests to the game's API endpoints to retrieve clan information.

The implementation is straightforward but effective - it uses the requests library to make API calls and parses the JSON responses to extract clan data. The tool can be run from any terminal and provides immediate results.

While the technical complexity is low, the impact was significant. This tool became an essential part of our clan's security protocol and was shared with other clan leaders to help protect their communities.

Core Technology

LanguagePython
HTTP LibraryRequests
Data FormatJSON

APIs & Integration

Game APIPet Simulator 99
PlatformRoblox
InterfaceCommand Line

Code Example

Python main.py
1import requests
2import json
3import sys
4
5def find_player_clan(roblox_id):
6 """
7 Find which clan a player belongs to using Pet Simulator 99 API
8 """
9 try:
10 # Pet Simulator 99 API endpoint
11 url = f"https://petsimulator99.com/api/player/{roblox_id}"
12
13 response = requests.get(url)
14 response.raise_for_status()
15
16 data = response.json()
17
18 if 'clan' in data and data['clan']:
19 return {
20 'player_id': roblox_id,
21 'clan_name': data['clan']['name'],
22 'clan_id': data['clan']['id'],
23 'role': data['clan']['role']
24 }
25 else:
26 return {
27 'player_id': roblox_id,
28 'clan_name': 'No Clan',
29 'clan_id': None,
30 'role': None
31 }
32
33 except requests.RequestException as e:
34 print(f"Error fetching player data: {e}")
35 return None
36
37def main():
38 if len(sys.argv) != 2:
39 print("Usage: python clan_finder.py ")
40 sys.exit(1)
41
42 roblox_id = sys.argv[1]
43 result = find_player_clan(roblox_id)
44
45 if result:
46 print(f"Player {result['player_id']} is in clan: {result['clan_name']}")
47 if result['role']:
48 print(f"Role: {result['role']}")
49 else:
50 print("Failed to retrieve player information")
51
52if __name__ == "__main__":
53 main()

Installation & Usage

The Player Clan Finder is a simple Python script that requires minimal setup. Just clone the repository and run the script with a Roblox user ID.

Quick Start

  1. 1Clone: git clone https://github.com/leafranger/PlayerClanFinder.git
  2. 2Install: pip install requests
  3. 3Run: python clan_finder.py 123456789

Example Output

Player 123456789 is in clan: LEGIT
Role: Member

Impact & Results

The Player Clan Finder proved to be an invaluable tool for our clan and the broader Pet Simulator 99 community. Here's what we achieved:

Immediate Results

  • • Successfully tracked the scammer across multiple clans
  • • Warned 15+ clan leaders about the malicious player
  • • Prevented further scams in other top clans

Community Impact

  • • Shared tool with other clan leaders
  • • Established a network of clan security
  • • Created awareness about player tracking

Skills & Technologies Learned

API Integration
Third-party API Development
Learned to work with external APIs, handle HTTP requests, parse JSON responses, and implement proper error handling for real-world applications.
CLI Tool Development
Command Line Interface
Built a practical command-line utility that demonstrates proper argument parsing, user input validation, and terminal-based user experience design.
Community Tool Development
Real-world Problem Solving
Developed a tool that solved a genuine community problem, learning how to identify user needs and create solutions that provide immediate value.

Future Improvements

While the current tool serves its purpose well, there are several potential enhancements that could make it even more useful:

Technical Enhancements

  • • Batch processing for multiple players
  • • Historical clan tracking
  • • Web interface for easier access
  • • Database integration for persistent data

Community Features

  • • Shared blacklist database
  • • Clan leader network integration
  • • Automated alerts for known scammers
  • • Community reporting system