Skip to content

Instantly share code, notes, and snippets.

@ntrzz
Created September 10, 2018 21:48
Show Gist options
  • Save ntrzz/b4fec4819044858b4cf7b0bddaf94d53 to your computer and use it in GitHub Desktop.
Save ntrzz/b4fec4819044858b4cf7b0bddaf94d53 to your computer and use it in GitHub Desktop.
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