Interactive Demo¶
Try the social-links library directly in your browser! This page uses Pyodide to run Python in the browser.
Loading Pyodide...
Installed:
social-links
•
Platforms:
Test URL
Try: https://linkedin.com/in/username or just paste any social URL
Detected
-
Valid
-
Detect Platform
Automatically detect which social media platform a URL belongs to.
Enter any social media URL
Python Code
detect_platform("url")
Validate URL
Check if a URL is valid for a specific social media platform.
Enter a URL to validate
Python Code
is_valid("platform", "url")
Sanitize URL
Normalize a URL to its canonical format by removing extra parameters and standardizing the structure.
Enter a URL to normalize
Python Code
sanitize("platform", "url")
Extract ID
Extract the username or profile identifier from a social media URL.
Enter a URL to extract the ID from
Python Code
extract_id("platform", "url")
Supported Platforms
View all 65+ supported social media platforms with built-in validation rules.
Python Code
list_platforms()