Skip to content Skip to sidebar Skip to footer

Is There A Way To Extract Information From Shadow-root On A Website?

I am setting up code to check the reputation of any URL E.g. http://go.mobisla.com/ on Website 'https://www.virustotal.com/gui/home/url' First, the very basic thing I am doing is t

Solution 1:

If you use their website, it'll only return a loading screen for VirusTotal, as this isn't the proper way.

What Shows Up:

Instead, what you're supposed to do is use their public API to make requests. However, you'll have to make an account to obtain a Public API Key.

You can use this code which is able to retrieve JSON info about the link. However, you'll have to fill in the API KEY with yours.

import requests, json

user_api_key = "<api key>"
resource = "deloplen.com:443"# feel free to remove this, just makes it look nicerdefpp_json(json_thing, sort=True, indents=4):
    iftype(json_thing) isstr:
        print(json.dumps(json.loads(json_thing), sort_keys=sort, indent=indents))
    else:
        print(json.dumps(json_thing, sort_keys=sort, indent=indents))
        returnNone

response = requests.get("https://www.virustotal.com/vtapi/v2/url/report?apikey=" + user_api_key + "&resource=" + resource)

json_response = response.json()

pretty_json = pp_json(json_response)

print(pretty_json)

If you want to learn more about the API, you can use their documentation.

Post a Comment for "Is There A Way To Extract Information From Shadow-root On A Website?"