question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEAT] Output JSON format

See original GitHub issue

It would be nice if sherlock could output the results in json format. This would help integrating sherlock with other tools.

example:

{
    "claimed": [
        {
            "name": "2Dimensions",
            "url": "https://2Dimensions.com/a/user123",
            "urlMain": "https://2Dimensions.com/"
        },
        {
            "name": "3dnews",
            "url": "http://forum.3dnews.ru/member.php?username=user123",
            "urlMain": "http://forum.3dnews.ru/"
        }
        // and so on
    ]
}

this would make importing data much easier. this feature then can be paired with other tools and APIs for specific sites which would help create a clear profile of the target which would help eliminate other users using the same username.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
maximousblkcommented, Aug 25, 2021

Just an FYI for anyone visiting this in the future:

I eventually ended up switching to maigret. It’s a fork of Sherlock which provides many more output formats (including html and pdf reports) and a lot more websites.

1reaction
viniciuspereirascommented, Aug 24, 2021

Hello , @sdushantha. I was really upset when you just said that nobody wanted to use a json output, since json is simply the most important if someone wants to integrate sherlock into some automation, not to mention that most cli tools have json output, so since you told the guy to do his solution, I did it here in 5 minutes and I wanted to share it in this issue for anyone who needs this implementation: The code can receive stdint for usage with ‘|’ in terminal or can be changed to recive some os.popen response.

import json
import sys
sherlock_output = sys.stdin.read().strip('\n').splitlines()
dict_out = {}
del sherlock_output[0]
for result in sherlock_output:
	result = result.strip('[+] ')
	line_split = result.split(': ')
	dict_out[line_split[0]] = line_split[1]
print(json.dumps(dict_out))

To run:

python3 sherlock <username> | python3 to_json.py
Read more comments on GitHub >

github_iconTop Results From Across the Web

feat: output decompilation results in json format (#676 ... - GitLab
--output-format - can be 'java' or 'json' (default: java). -e, --export-gradle - save as android gradle project.
Read more >
pactl: add format flag for JSON output (!497) · Merge requests
This adds a --format flag to pactl , which can have the values of normal or json . It also adds JSON output...
Read more >
Setting the AWS CLI output format - AWS Documentation
JSON output format ​​ JSON is the default output format of the AWS CLI. Most programming languages can easily decode JSON strings using...
Read more >
Save date to file in json format using bash - Stack Overflow
I am trying to save the current date in the following format to a file and wrap it in a simple json ......
Read more >
Output JSON for Incident Mapping - LIVEcommunity - 389470
You could export an existing incident and make the labels the main fields on the incident and use this JSON as a file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found