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.

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

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

More than 100 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

...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 online requests

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.

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'

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.24.tar.gz (54.4 kB view details)

Uploaded Source

Built Distribution

socid_extractor-0.0.24-py3-none-any.whl (53.8 kB view details)

Uploaded Python 3

File details

Details for the file socid-extractor-0.0.24.tar.gz.

File metadata

  • Download URL: socid-extractor-0.0.24.tar.gz
  • Upload date:
  • Size: 54.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for socid-extractor-0.0.24.tar.gz
Algorithm Hash digest
SHA256 f309dc63fd7ce25a74528150073dc62bd3e7e99b87205063c069482e220605c9
MD5 64bb0357d27e7410dda9674e96c4beff
BLAKE2b-256 d5d4f18c5292617560942bbd2c974d3531f696dd0b22c53ca5fe7f5325cc2a6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for socid_extractor-0.0.24-py3-none-any.whl
Algorithm Hash digest
SHA256 f0825fd4d963c22c5b091a211da39cecde8cb15ad967d4e32c3408cb50d189bf
MD5 b6f434275782b28326a85c1cc83c20f6
BLAKE2b-256 e2b789f393d0c79c82f37fdb677f28f860288cdae2774e2fd7eb4d8de820b071

See more details on using hashes here.

Supported by

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