Skip to main content

Extract accounts' identifiers from personal pages on various platforms

Project description

socid_extractor

Extract information about a user from profile webpages / API responses and save it in machine-readable format. 130+ methods for various sites and platforms.

Usage

As a command-line tool:

$ socid_extractor --url https://www.deviantart.com/muse1908
country: France
created_at: 2005-06-16 18:17:41
gender: female
username: Muse1908
website: www.patreon.com/musemercier
links: ['https://www.facebook.com/musemercier', 'https://www.instagram.com/muse.mercier/', 'https://www.patreon.com/musemercier']
tagline: Nothing worth having is easy...

Without installing:

$ ./run.py --url https://www.deviantart.com/muse1908

To skip the HTTP request when the URL string does not match any known site hint (faster batch runs; optional, may skip generic engines such as forum templates):

$ socid_extractor --url https://example.com/foo --skip-fetch-if-no-url-hint

As a Python library:

>>> import socid_extractor, requests
>>> r = requests.get('https://www.patreon.com/annetlovart')
>>> socid_extractor.extract(r.text)
{'patreon_id': '33913189', 'patreon_username': 'annetlovart', 'fullname': 'Annet Lovart', 'links': "['https://www.facebook.com/322598031832479', 'https://www.instagram.com/annet_lovart', 'https://twitter.com/annet_lovart', 'https://youtube.com/channel/UClDg4ntlOW_1j73zqSJxHHQ']"}

Installation

$ pip3 install socid-extractor

The latest development version can be installed directly from GitHub:

$ pip3 install -U git+https://github.com/soxoj/socid_extractor.git

Sites and methods

130+ methods for different sites and platforms are supported!

  • Google (all documents pages, maps contributions), cookies required
  • Yandex (disk, albums, znatoki, music, realty, collections), cookies required to prevent captcha blocks
  • Mail.ru (my.mail.ru user mainpage, photo, video, games, communities)
  • Facebook (user & group pages)
  • VK.com (user page)
  • OK.ru (user page)
  • Instagram
  • Reddit
  • Medium
  • Flickr
  • Tumblr
  • TikTok
  • GitHub
  • Chess.com
  • Roblox
  • MyAnimeList
  • Substack
  • Hashnode
  • Fandom wikis (MediaWiki API)
  • Rarible
  • CSSBattle
  • Max (max.ru)
  • TwitchTracker
  • lnk.bio
  • Bluesky
  • Scratch
  • Wikipedia
  • DailyMotion
  • SlideShare
  • WordPress.org
  • Weebly
  • Calendly
  • Google Play
  • Amazon Author
  • Stack Overflow (HTML + API)
  • LeetCode
  • Boosty
  • Warpcast (Farcaster)
  • Paragraph
  • Fragment (TON/Telegram)
  • Tonometerbot
  • Spatial

...and many others.

You can also check tests file for data examples, schemes file to expore all the methods.

When it may be useful

  • Getting all available info by the username or/and account UID. Examples: Week in OSINT, OSINTCurious
  • Users tracking, checking that the account was previously known (by ID) even if all public info has changed. Examples: Aware Online
  • Searching by commonly used cross-service UIDs (GAIA ID, Facebook UID, Yandex Public ID, etc.)
    • DB leaks of forums and platforms in SQL format
    • Indexed links that contain target profile ID
  • Searching for tracking data by comparison with other IDs - how it works, how can it be used.
  • Law enforcement investigations

SOWEL classification

This tool uses the following OSINT techniques:

Tools using socid_extractor

  • Maigret - powerful namechecker, generate a report with all available info from accounts found.

  • TheScrapper - scrape emails, phone numbers and social media accounts from a website.

  • InfoHunter - An open source OSINT tool that allows you to search, collect and analyze information online to get a complete picture of the person or company you are interested in.

  • YaSeeker - tool to gather all available information about Yandex account by login/email.

  • Marple - scrape search engines results for a given username.

Testing

python3 -m pytest tests/test_e2e.py -n 10  -k 'not cookies' -m 'not github_failed and not rate_limited'

Every new scheme must have an e2e test in tests/test_e2e.py hitting a real URL/API. Unit tests with inline fixtures (tests/test_socid_improvements.py) are also required but do not replace e2e coverage. See docs/testing-and-ci.md for details.

Developer documentation (architecture, modules, CI): docs/.

Contributing

Check separate page if you want to add a new methods of fix anything.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

socid_extractor-0.0.28.tar.gz (75.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

socid_extractor-0.0.28-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

File details

Details for the file socid_extractor-0.0.28.tar.gz.

File metadata

  • Download URL: socid_extractor-0.0.28.tar.gz
  • Upload date:
  • Size: 75.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for socid_extractor-0.0.28.tar.gz
Algorithm Hash digest
SHA256 3be6bf4a84a14097d3664e649d4b50a1de808f13af9f739d4ad5e5f41ad5a7c2
MD5 fa966ebe26260ac1dd920e299fef2c74
BLAKE2b-256 2390507ef3431f886f833f65f99eab076eb7123a86fc92fc732e49b01c6adaef

See more details on using hashes here.

Provenance

The following attestation bundles were made for socid_extractor-0.0.28.tar.gz:

Publisher: python-publish.yml on soxoj/socid-extractor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file socid_extractor-0.0.28-py3-none-any.whl.

File metadata

File hashes

Hashes for socid_extractor-0.0.28-py3-none-any.whl
Algorithm Hash digest
SHA256 1fc8b448cfe9d483597f4b606ac8104193feb24a92e8b95cd1e41a9661ca506c
MD5 3446351cd78211b8ba6279af96bda6d4
BLAKE2b-256 4ca75649d81868279fe9804dbd9378747ba8b590f18a26803c9edbba7fbd8daf

See more details on using hashes here.

Provenance

The following attestation bundles were made for socid_extractor-0.0.28-py3-none-any.whl:

Publisher: python-publish.yml on soxoj/socid-extractor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page