Sign in to follow this  
mesvak

py GATHERING USER NAME OR LEECHING INSTA USER NAMES SIMPLE PY scrpit

Recommended Posts

[hide]

 

 

#usage:open cmd > type : pip install selenium    // you can edit this shit and do it as u want 
#go to "http://chromedriver.chromium.org/downloads" and download the ChromeDriver which matches with your      version
#for finding your chrome version you have to check it at "chrome://settings/help" in your chrome browser
#then replace the downloaded ChromeDriver path to the marked line in the code

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
import time

#requirements //mesvak is here XD
n = input('How many users do you want to gather ? ')
u = input("username: ")
p = input("password: ")
t = input("Who is your target(id instagram): ")
f= open("targets.txt","w")

#$$$$$$$$$$$$$$$$$$$$$$$
chromedriver = "C:/mesvak/.../Downloads/chromedriver.exe" #replace the path here 
#$$$$$$$$$$$$$$$$$$$$$$$

driver = webdriver.Chrome(chromedriver)
url = "https://instagram.com/"+t+"/followers"
driver.get(url)
time.sleep(4)
driver.find_element_by_name("username").send_keys(u)
driver.find_element_by_name("password").send_keys(p)
time.sleep(2)
driver.find_element(By.XPATH, "//*[@id='react-root']/section/main/div/article/div/div[1]/div/form/div[4]/button").click()
time.sleep(10)
#Gathering steps
x = 1
y = int(n)+1
while x != y:
   prof = "/html/body/div[3]/div/div[2]/ul/div/li["+str(x)+"]/div/div[1]/div[2]/div[1]/a"
   u_name = "/html/body/div[3]/div/div[2]/ul/div/li["+str(x)+"]/div/div[1]"
   sc = driver.find_element(By.XPATH, "/html/body/div[3]/div/div[2]/ul/div/li["+str(x)+"]/div")
   sc.location_once_scrolled_into_view
   sc.location_once_scrolled_into_view
   name = driver.find_element(By.XPATH, u_name).find_element(By.XPATH, prof)
   time.sleep(1)
   name.location_once_scrolled_into_view
   time.sleep(1)
   res = name.get_attribute("href")
   f.write(res[26:-1]+"\n")
   print(res[26:-1]+" "+str(x)+"\n")
   x = x + 1
print("happy days nigga u have ur own shit kappa")
f.close()

 

 

 

[/hide]

Share this post


Link to post
Share on other sites

I'm interested but idk what if it is what I think it is

Share this post


Link to post
Share on other sites

thanks mate

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this