Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests, time, random
- from colorama import Fore
- from random import randint
- from bs4 import BeautifulSoup
- #url = database of english words
- #url2 = database of http(s) proxies
- #url3 instagram with blank username
- url = "https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha.txt"
- url2 = "https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/http.txt"
- url3 = 'http://www.instagram.com/{user}/'
- #random word selector stuff
- r = requests.get(url)
- text = r.text
- words = text.split()
- rng = randint(0,len(words))
- #random proxy selector stuff
- ipreq = requests.get(url2)
- nums = ipreq.text
- ips = nums.split()
- randomcheck = randint(0,len(ips))
- #this one worked 103.149.130.38:80
- proxies = {
- 'http': 'http://' + '103.149.130.38:80',
- 'https': 'https://' + ips[randomcheck],
- }
- print(proxies)
- while True:
- user = ""
- for words[rng] in random.choices(words):
- user = user + words[rng]
- 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)
- ref = requests.get("http://www.instagram.com/{user}/")
- ref.text
- src = 'Page not found • Instagram'
- soup = BeautifulSoup(ref.text, "html.parser")
- print(soup.prettify())
- if (soup.find_all(response) == src):
- print(Fore.LIGHTBLUE_EX + f"NOT FOUND: {user}" + Fore.RESET)
- elif (soup.find_all(response) != src):
- print(Fore.GREEN + f"USER FOUND: {user}" + Fore.RESET)
- else:
- print("BLOCKED FROM INSTAGRAM")
- time.sleep(15)
Advertisement
Add Comment
Please, Sign In to add comment