๐จโ๐ฉโ๐งโ๐ฆ (Rest) API to extract social media profiles from websites or specific URLs
The socials API allows you to extract social media profiles from urls. It is an API version of my library called socials for Python.
Try it at socials.karllorey.com.
Requesting http://socials.karllorey.com/api/fetch-url
with a POST request and url=https://karllorey.com
as parameter
will return all social media profiles
linked from karllorey.com (my personal website).
For example, with cURL:
curl --data "url=https://karllorey.com" http:/socials.karllorey.com/api/fetch-url
Response:
{
"matches_per_platform": {
"facebook": [],
"twitter": [
"https://twitter.com/karllorey"
],
"linkedin": [],
"github": [
"https://github.com/lorey/karllorey.com",
"https://github.com/lorey"
],
"email": []
}
}
There's a page, socials.karllorey.com/try, where you can preview the functionality.
Django REST Framework offers a browsable API where you can test all functionality in the browser.
Media type
: application/x-www-form-urlencoded
Content
: url=https://karllorey.com
or any other urlsocials API is dockerized and can be set up via docker-compose within seconds:
docker-compose build
docker-compose up -f docker-compose.yml -f docker-compose.prod.yml -d
It should now be accessible at port 80.
The development version you get with docker-compose up
is at port 8016.
Make sure to adapt the rate limit in socials_api/settings.py
.
I have personal ansible and terraform files for deployment via docker-compose on AWS. Reach out if you're interested.