Guest User

Untitled

a guest
Mar 12th, 2023
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.71 KB | None | 0 0
  1. import requests, time, random
  2. from colorama import Fore
  3. from random import randint
  4. from bs4 import BeautifulSoup
  5.  
  6.  
  7.  
  8.  
  9. #url = database of english words
  10. #url2 = database of http(s) proxies
  11. #url3 instagram with blank username
  12. url = "https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha.txt"
  13. url2 = "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/http.txt"
  14. url3 = 'http://www.instagram.com/{user}/'
  15. #random word selector stuff
  16. r = requests.get(url)
  17. text = r.text
  18. words = text.split()
  19. rng = randint(0,len(words))
  20.  
  21. #random proxy selector stuff
  22. ipreq = requests.get(url2)
  23. nums = ipreq.text
  24. ips = nums.split()
  25. randomcheck = randint(0,len(ips))
  26.  
  27. #this one worked 103.149.130.38:80
  28. proxies  = {
  29. 'http': 'http://' + '103.149.130.38:80',
  30. 'https': 'https://' + ips[randomcheck],
  31. }
  32.  
  33. print(proxies)
  34.  
  35. while True:
  36.     user = ""
  37.    
  38.     for words[rng] in random.choices(words):
  39.             user = user + words[rng]
  40.    
  41.     response = requests.get("http://www.instagram.com/{user}/",proxies=proxies,headers={'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36'}, timeout=100)
  42.    
  43.     ref = requests.get("http://www.instagram.com/{user}/")
  44.     ref.text
  45.     src = 'Page not found • Instagram'
  46.     soup = BeautifulSoup(ref.text, "html.parser")
  47.    
  48.     print(soup.prettify())
  49.    
  50.     if (soup.find_all(response) == src):
  51.        
  52.         print(Fore.LIGHTBLUE_EX + f"NOT FOUND: {user}" + Fore.RESET)
  53.        
  54.     elif (soup.find_all(response) != src):
  55.         print(Fore.GREEN + f"USER FOUND: {user}" + Fore.RESET)
  56.    
  57.     else:
  58.         print("BLOCKED FROM INSTAGRAM")
  59.         time.sleep(15)
  60.    
  61.  
  62.  
Advertisement
Add Comment
Please, Sign In to add comment