Sherlock
A NLP tool to extract insightful information about a Reddit user based on the Reddit API. Integrated as a Django app and used as the backend for snoosnoop.com.
Install / Use
/learn @shoaib-fixes/SherlockREADME
Sherlock
Extract interesting information about redditors from their submissions and comments. Outputs data in JSON format.
Setup
- Run
pip install -r requirements.txtto install dependencies. - Get Reddit API credentials from https://www.reddit.com/prefs/apps
- Create .env file in the root directory containing:
REDDIT_CLIENT_ID=your_client_id_here
REDDIT_SECRET=your_secret_here
REDDIT_USER_AGENT=sherlock/1.0
Authentication
Sherlock uses Reddit's OAuth2 client credentials flow for server-to-server authentication. The authentication system includes:
- Automatic token refresh: Tokens are refreshed automatically when they expire
- Rate limiting: Built-in rate limiting to respect Reddit's API limits (60 requests/minute)
- Error handling: Comprehensive error handling for network issues, authentication failures, and rate limits
- Retry logic: Exponential backoff retry logic for failed requests
- Logging: Detailed logging for debugging and monitoring
Security Notes
- Never commit your
.envfile or API credentials to version control - The application uses read-only API access and only fetches public user data
- All API calls are properly authenticated and rate-limited
Usage
python sherlock.py <reddit-username>
Example
Command:
python sherlock.py MemoryEmptyAgain
Output:
Processing user MemoryEmptyAgain
Data saved to MemoryEmptyAgain.json
Processing complete... 0:00:05.465406
License
MIT License
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
