socials
Turn URLs into structured social media profiles.
You have a list of URLs from a scrape, a CSV export, or email signatures. Some of them are social media profiles. Socials finds them and gives you structured data to work with.
Quick Start
pip install socials
import socials
repo = socials.parse("https://github.com/lorey/socials")
print(repo)
# GitHubRepoURL(owner='lorey', repo='socials')
print(repo.platform)
# 'github'
print(repo.owner)
# 'lorey'
Supported Platforms
| Platform | Entity Types | Example URL |
|---|---|---|
| GitHub | profile, repo | github.com/lorey/socials |
| Twitter/X | profile | twitter.com/karllorey |
| profile, company | linkedin.com/in/karllorey | |
| profile | facebook.com/zuck | |
| profile | instagram.com/instagram | |
| YouTube | channel | youtube.com/c/GoogleDevelopers |
| mailto:hello@example.com | ||
| Phone | phone | tel:+1234567890 |
What You Get
Each URL is parsed into a typed Python object:
platform- Which social networkentity_type- Profile, repo, company, etc.- Platform-specific fields like
username,repo,company_name
No regex. No string parsing. Just data.
Next Steps
- Getting Started - Full tutorial with real-world examples
- CLI Reference - Process URLs from the command line
- API Reference - Full API documentation
Architecture
- Overview - How socials works
- Parsers - Platform-specific URL parsers
- Registry - URL routing
- URLs - Typed URL objects
- Extraction - Extractor and results
Related Projects
- Socials API - REST API wrapper for socials
- Social Media Profiles Regexs - Regex collection for social media URL detection