socials package

Submodules

socials.cli module

socials.socials module

Main module.

class socials.socials.Extraction(hrefs)[source]

Bases: object

Extracted profiles.

get_matches_for_platform(platform)[source]

Find all matches for a specific platform.

Parameters:platform – platform to search for.
Returns:list of matches.
get_matches_per_platform()[source]

Get lists of profiles keyed by platform name.

Returns:a dictionary with the platform as a key, and a list of the platform’s profiles as values.
socials.socials.clean_mailto(href)[source]
socials.socials.extract_matches_for_platform(platform, hrefs)[source]
socials.socials.extract_matches_per_platform(hrefs)[source]

Get lists of profiles keyed by platform name.

Parameters:hrefs – hrefs to parse.
Returns:a dictionary with the platform as a key, and a list of the platform’s profiles as values.
socials.socials.get_cleaner(platform)[source]
socials.socials.get_platform(href)[source]
socials.socials.is_platform(href, platform)[source]

Module contents

Top-level package for Socials.

socials.extract(urls)[source]