Created
September 10, 2018 21:48
-
-
Save ntrzz/b4fec4819044858b4cf7b0bddaf94d53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import time | |
def main(): | |
with open("domainz.txt", 'r+') as f: | |
content = f.readlines() | |
for c in content: | |
time.sleep(1) | |
r = requests.get("https://urlscan.io/api/v1/search/?q=domain:{}".format(c)) | |
data = json.loads(r.text) | |
if data: | |
results = data["results"] | |
if data["results"]: | |
for r in results: | |
print(r["page"]["url"]) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment