Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- import requests as c
- from re import findall as reg
- domain_name = raw_input("ext domain: ")
- page = 0
- added = 0
- while True:
- page = page + 1
- try:
- text = c.get("http://pluginu.com/domain-zone/"+str(domain_name)+"/" + str(page)).text
- p = reg('<a href="/site/(.*?)" title="WordPress website', text)
- if p:
- for i in p:
- save = open("pluginu.txt","a")
- read = open("pluginu.txt").read()
- if str(i) in read:
- print("\033[31;1m# \033[0m"+str(i)+" -> Duplicated")
- continue
- else:
- added = added + 1
- print("\033[32;1m# \033[0m "+str(i)+" -> Added")
- save.write(str(i)+'\n')
- save.close()
- print("\033[33;1m# \033[0m Total site saved "+str(added))
- else:
- break
- except:
- print("Maybe Blocked in site")
- raw_input("Press to continue grab")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement