Advertisement
androxgh0st

domainstatus.py

Jul 26th, 2020
934
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. # -- coding: utf-8 --
  2.  
  3. import requests, re
  4.  
  5. k = raw_input('2020-2-11 > ')
  6. page = 0
  7. while True:
  8.     page = page + 1
  9.     text = requests.get("https://domain-status.com/archives/"+k+"/org/registered/"+str(page)).text
  10.     regex = re.findall('<li><a href="https://domain-status.com/www/(.*?)">', text)
  11.     if regex:
  12.         for i in regex:
  13.             save = open("domain_grab.txt","a")
  14.             a = open('domain_grab.txt').read()
  15.             if str(i) in a:
  16.                 print("\033[31;1m-\033[0m "+i)
  17.             else:
  18.                 print("\033[32;1m-\033[0m "+i)
  19.                 save.write(i+'\n')
  20.             save.close()
  21.     else:
  22.         print("kelar")
  23.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement