{"id":13539766,"url":"https://github.com/iojw/socialscan","last_synced_at":"2025-05-14T19:02:12.097Z","repository":{"id":34414928,"uuid":"171108156","full_name":"iojw/socialscan","owner":"iojw","description":"Python library for accurately querying username and email usage on online platforms","archived":false,"fork":false,"pushed_at":"2024-03-20T17:45:40.000Z","size":311,"stargazers_count":1567,"open_issues_count":13,"forks_count":192,"subscribers_count":35,"default_branch":"master","last_synced_at":"2025-03-30T07:04:31.951Z","etag":null,"topics":["cli","email","email-checker","osint","social-media","username","username-checker"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iojw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-02-17T10:21:06.000Z","updated_at":"2025-03-28T01:01:40.000Z","dependencies_parsed_at":"2023-12-23T06:53:24.818Z","dependency_job_id":"5856f9a6-3a75-4e19-8993-012df0263178","html_url":"https://github.com/iojw/socialscan","commit_stats":{"total_commits":125,"total_committers":7,"mean_commits":"17.857142857142858","dds":0.504,"last_synced_commit":"05934960fda65e1fd3312ffca31db0bfec8c39b3"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iojw%2Fsocialscan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iojw%2Fsocialscan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iojw%2Fsocialscan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iojw%2Fsocialscan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iojw","download_url":"https://codeload.github.com/iojw/socialscan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247451644,"owners_count":20940939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","email","email-checker","osint","social-media","username","username-checker"],"created_at":"2024-08-01T09:01:31.628Z","updated_at":"2025-04-06T08:08:02.770Z","avatar_url":"https://github.com/iojw.png","language":"Python","funding_links":["https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif","https://paypal.me/isaacong"],"categories":["\u003ca id=\"8f92ead9997a4b68d06a9acf9b01ef63\"\u003e\u003c/a\u003e扫描器\u0026\u0026安全扫描\u0026\u0026App扫描\u0026\u0026漏洞扫描","Python","[↑](#-table-of-contents) Nickname search","\u003ca id=\"132036452bfacf61471e3ea0b7bf7a55\"\u003e\u003c/a\u003e工具","ابزارهای امنیتی","\u003ca name=\"online\"\u003e\u003c/a\u003eOnline search and resources"],"sub_categories":["\u003ca id=\"de63a029bda6a7e429af272f291bb769\"\u003e\u003c/a\u003e未分类-Scanner","Tools","کار با زمان و تقویم"],"readme":"# socialscan\n[![Build Status](https://travis-ci.com/iojw/socialscan.svg?token=4yLRbSuqAQqrjanbzeXs\u0026branch=master)](https://travis-ci.com/iojw/socialscan)\n[![Downloads](https://pepy.tech/badge/socialscan)](https://pepy.tech/project/socialscan/)\n[![MPL 2.0 license](https://img.shields.io/badge/License-MPL%202.0-blue.svg)](https://www.mozilla.org/en-US/MPL/2.0/)\n[![Python 3.6+](https://img.shields.io/badge/python-3.6+-green.svg)](https://www.python.org/downloads/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nsocialscan offers **accurate** and **fast** checks for email address and username usage on online platforms.  \n\nGiven an email address or username, socialscan returns whether it is available, taken or invalid on online platforms. \n\nFeatures that differentiate socialscan from similar tools (e.g. knowem.com, Namechk, and Sherlock):\n\n1. **100% accuracy**: socialscan's query method eliminates the false positives and negatives that often occur in similar tools, ensuring that results are always accurate.\n\n2. **Speed**: socialscan uses [asyncio](https://docs.python.org/3/library/asyncio.html) along with [aiohttp](https://aiohttp.readthedocs.io/en/stable/) to conduct all queries concurrently, providing fast searches even with bulk queries involving hundreds of usernames and email addresses. On a test computer with average specs and Internet speed, 100 queries were executed in ~4 seconds.\n\n3. **Library / CLI**: socialscan can be executed through a CLI, or imported as a Python library to be used with existing code.\n\n4. **Email support**: socialscan supports queries for both email addresses and usernames.\n\nThe following platforms are currently supported:   \n\n|           | Username | Email |\n|:---------:|:--------:|:--------:|\n| Instagram |     ✔️    |   ✔️   |\n| Twitter   |     ✔️    |   ✔️   |\n|  GitHub   |     ✔️    |   ✔️   |\n|   Tumblr  |     ✔️    |   ✔️   |\n|  Lastfm   |     ✔️    |   ✔️   |\n|  Snapchat |     ✔️    |        |\n| GitLab    |     ✔️    |        |\n| Reddit    |     ✔️    |        |\n|  Yahoo    |     ✔️    |        |\n| Pinterest |            |   ✔️  |\n|  Firefox  |            |   ✔️  |\n\n![](https://github.com/iojw/socialscan/raw/master/demo/demo.gif)\n![](https://github.com/iojw/socialscan/raw/master/demo/demo100.gif)\n\n## Background\n\nOther similar tools check username availability by requesting the profile page of the username in question and based on information like the HTTP status code or error text on the requested page, determine whether a username is already taken. This is a naive approach that fails in the following cases:\n\n- Reserved keywords: Most platforms have a set of keywords that they don't allow to be used in usernames  \n(A simple test: try checking reserved words like 'admin' or 'home' or 'root' and see if other services mark them as available)\n\n- Deleted/banned accounts: Deleted/banned account usernames tend to be unavailable even though the profile pages might not exist\n\nTherefore, these tools tend to come up with false positives and negatives. This method of checking is also dependent on platforms having web-based profile pages and cannot be extended to email addresses.\n\nsocialscan aims to plug these gaps by directly querying the registration servers of the platforms instead, retrieving the appropriate CSRF tokens, headers, and cookies. \n\n## Installation\n\n### pip\n```\n\u003e pip install socialscan\n```\n\n### Install from source\n```\n\u003e git clone https://github.com/iojw/socialscan.git  \n\u003e cd socialscan  \n\u003e pip install .\n```\n\n## Usage\n```\nusage: socialscan [list of usernames/email addresses to check]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --platforms [platform [platform ...]], -p [platform [platform ...]]\n                        list of platforms to query (default: all platforms)\n  --view-by {platform,query}\n                        view results sorted by platform or by query (default:\n                        query)\n  --available-only, -a  only print usernames/email addresses that are\n                        available and not in use\n  --cache-tokens, -c    cache tokens for platforms requiring more than one\n                        HTTP request (Snapchat, GitHub, Instagram. Lastfm \u0026\n                        Tumblr), reducing total number of requests sent\n  --input input.txt, -i input.txt\n                        file containg list of queries to execute\n  --proxy-list proxy_list.txt\n                        file containing list of HTTP proxy servers to execute\n                        queries with\n  --verbose, -v         show query responses as they are received\n  --show-urls           display profile URLs for usernames on supported platforms\n                        (profiles may not exist if usernames are reserved or belong to deleted/banned accounts)\n  --json json.txt       output results in JSON format to the specified file\n  --version             show program's version number and exit\n```\n\n## As a library\nsocialscan can also be imported into existing code and used as a library. \n\nv1.0.0 introduces the async method `execute_queries` and the corresponding synchronous wrapper `sync_execute_queries` that takes a list of queries and optional list of platforms and proxies, executing all queries concurrently. The method then returns a list of results in the same order.\n\n```python\nfrom socialscan.util import Platforms, sync_execute_queries\n\nqueries = [\"username1\", \"email2@gmail.com\", \"mail42@me.com\"]\nplatforms = [Platforms.GITHUB, Platforms.LASTFM]\nresults = sync_execute_queries(queries, platforms)\nfor result in results:\n    print(f\"{result.query} on {result.platform}: {result.message} (Success: {result.success}, Valid: {result.valid}, Available: {result.available})\")\n```\nOutput:\n```\nusername1 on GitHub: Username is already taken (Success: True, Valid: True, Available: False)\nusername1 on Lastfm: Sorry, this username isn't available. (Success: True, Valid: True, Available: False)\nemail2@gmail.com on GitHub: Available (Success: True, Valid: True, Available: True)\nemail2@gmail.com on Lastfm: Sorry, that email address is already registered to another account. (Success: True, Valid: True, Available: False)\nmail42@me.com on GitHub: Available (Success: True, Valid: True, Available: True)\nmail42@me.com on Lastfm: Looking good! (Success: True, Valid: True, Available: True)\n```\n\n## Text file input\nFor bulk queries with the `--input` option, place one username/email on each line in the .txt file:\n```\nusername1\nemail2@mail.com\nusername3\n```\n\n## Donations\n\nIf you find this tool useful and would like to support its continued development, you can donate here. Thank you for your support.\n\n[![Donate Via PayPal](https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif)](https://paypal.me/isaacong)\n\nBTC: bc1qwrnukyc6xh9aygu5ps2geh8stmvagsj5u4v7j6  \nETH: 0x45a0F91666391078eA521A6123559E49DAb1275f\n\n## Contributing\nErrors, suggestions or want a site added? [Submit an issue](https://github.com/iojw/socialscan/issues). \n\nPRs are always welcome 🙂\n\nPlease ensure that the code is formatted with `black` using the config in `pyproject.toml` before submitting a PR. \n\n## License\nMPL 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiojw%2Fsocialscan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiojw%2Fsocialscan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiojw%2Fsocialscan/lists"}