Advertisement
androxgh0st

pluginu_dom.py

Jun 13th, 2020
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. import requests as c
  3. from re import findall as reg
  4.  
  5. domain_name = raw_input("ext domain: ")
  6.  
  7. page = 0
  8. added = 0
  9. while True:
  10. page = page + 1
  11. try:
  12. text = c.get("http://pluginu.com/domain-zone/"+str(domain_name)+"/" + str(page)).text
  13. p = reg('<a href="/site/(.*?)" title="WordPress website', text)
  14. if p:
  15. for i in p:
  16. save = open("pluginu.txt","a")
  17. read = open("pluginu.txt").read()
  18. if str(i) in read:
  19. print("\033[31;1m# \033[0m"+str(i)+" -> Duplicated")
  20. continue
  21. else:
  22. added = added + 1
  23. print("\033[32;1m# \033[0m "+str(i)+" -> Added")
  24. save.write(str(i)+'\n')
  25. save.close()
  26. print("\033[33;1m# \033[0m Total site saved "+str(added))
  27. else:
  28. break
  29. except:
  30. print("Maybe Blocked in site")
  31. raw_input("Press to continue grab")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement