irfanalidv / socialmediaextractor

A library to extract social media links from websites

Home Page:https://pypi.org/project/socialmediaextractor/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub license Python version PyPI version Downloads

Usage

To use the socialmediaextractor library, you first need to install it using pip:

pip install socialmediaextractor

Once the library is installed, you can extract social media links from a website using the following code:

from socialmediaextractor import extract_social_media_accounts
# Example: Extract social media accounts from a website
url = 'https://example.com'
social_media_links = extract_social_media_accounts(url)
print(social_media_links)
# Output: {'Facebook': 'https://www.facebook.com/example', 'LinkedIn': 'https://www.linkedin.com/company/example/', 'Twitter': 'https://twitter.com/example'}

About

A library to extract social media links from websites

https://pypi.org/project/socialmediaextractor/

License:MIT License


Languages

Language:Python 100.0%