Esempio n. 1
0
def main():
    global driver
    print('running script..')
    driver = webdriver.Chrome(ChromeDriverManager().install())
    l = login.Login(driver, username, password)
    l.signin()
    gp = getpages.Getpages(driver)
    refs = gp.get_followers()
    print(gp.get_num_flw())
    run_bot(refs, driver, gp)
Esempio n. 2
0
def main():
    global driver
    print('running script..')
    driver = webdriver.Chrome('C://Users/Ryan/Desktop/chromedriver.exe')
    l = login.Login(driver, username, password)
    l.signin()
    gp = getpages.Getpages(driver)
    refs = gp.get_followers()
    print(gp.get_num_flw())
    run_bot(refs, driver, gp)
Esempio n. 3
0
def main():
    #driver is a global variable
    global driver
    print('running script..')
    driver = webdriver.Chrome('D:\chromedriver.exe')
    l = login.Login(driver, username, password)
    #call the signin function to put username and password and click button signin
    l.signin()
    gp = getpages.Getpages(driver)
    refs = gp.get_followers()
    print(gp.get_num_flw())
    run_bot(refs, driver, gp)
Esempio n. 4
0
def main():
    global driver
    print('running script...')
    driver = webdriver.Chrome()  #insert location of .exe file
    log = login.Login(driver, username, password)
    log.signin()
    driver.get(
        '')  #provide the link of the page whose followers are to be followed
    gp = getpages.Getpages(driver)
    refs = gp.get_followers()
    print(gp.get_num_flw())
    run_bot(refs, driver, gp)
Esempio n. 5
0
def main():
    global driver
    print("Running script")
    driver = webdriver.Chrome(
        r"C:\Users\loren\OneDrive\Documentos\CURSO PYTHON\BOT INSTAGRAM\chromedriver.exe"
    )
    l = login.Login(driver, username, password)
    l.signin()
    time.sleep(3)
    gp = getpages.Getpages(driver)
    print(gp.get_number_followers())
    refs = gp.get_followers()
    run_bot(driver, refs, gp)
Esempio n. 6
0
def main():
    global driver
    print('running script..')
    driver = webdriver.Chrome(
        'D://a1/software_installer/chromedriver_win32/chromedriver.exe')
    l = login.Login(driver, username, password)
    l.signin()
    print("login succeed...!")
    time.sleep(5)
    gp = getpages.Getpages(driver, accountName)
    print('\nTotal Followers of the Account (' + accountName + ') ' +
          str(gp.get_num_flw()))
    time.sleep(5)
    refs = gp.get_followers()
    run_bot(refs, driver, gp)
Esempio n. 7
0
def main():
    global driver
    print('running script..')
    driver = webdriver.Chrome('C://Users/vranda/Desktop/chromedriver.exe')
    l = login.Login(driver, username, password)
    l.signin()
    print('signin done')
    time.sleep(3)
    gp = getpages.Getpages(driver)
    print('getting followers')
    #refs = gp.get_followers()
    time.sleep(3)
    print('follower count:')
    print(gp.get_num_flw())
    time.sleep(30)
    print('Bot')
    run_bot(refs, driver, gp)
Esempio n. 8
0
def main():
    global driver
    print('running script..')
    driver = webdriver.Chrome(
        'C://Users/tikun/Desktop/Applications/chromedriver.exe')
    l = login.Login(driver, username, password)
    l.signin()
    pt = driver.find_element_by_css_selector(
        '#react-root > section > main > div > div > div > div > button')
    pt.click()
    time.sleep(2)
    pq = driver.find_element_by_css_selector(
        'body > div.RnEpo.Yx5HN > div > div > div > div.mt3GC > button.aOOlW.HoLwm'
    )
    pq.click()
    time.sleep(2)
    m = getpages.Getpages(driver, username)
    m.get_followers()
Esempio n. 9
0
def main() :
    global driver
    print("running script")
    driver = webdriver.Chrome('chromedriver.exe') # You have to download chromedriver.exe
    l = login.Login(driver,username,password)
    l.signin()
    time.sleep(10)
    # Loads this webpage
    driver.get('https://www.instagram.com/python.learning/')
    #driver.get('https://www.instagram.com/__epic69/')
    
    
    gp = getpages.Getpages(driver)
    #gp.get_followers()
    print("Number of Followers "+ str(gp.get_num_flw()))
    gp.is_public()
    time.sleep(4)
    gp.follow_page()
    time.sleep(10)
    gp.like_post()
Esempio n. 10
0
	return driver

# op = webdriver.ChromeOptions()
# op.experimental_options[ "debuggerAddress" ] = "localhost:21"
# driver = webdriver.Chrome(ChromeDriverManager().install(),options=op)

# if __name__ == '__main__':
# global driver
print('running script..')
driver = set_driver()
# input() # Get VPN if needed
l = login.Login(driver, username, password)
time.sleep(2)
l.signin()
time.sleep(2)
gp = getpages.Getpages(driver, user)
time.sleep(2)
followers, followersTag, following, followingTag = followersFollowing(gp, user)
print("GOT FOLLOWERS AND FOLLOWING")
# Find a way to check if, out of the new shortened list of following, a person has been unfollowed, and label it todays date
# Go through list, and label all who are followed still, then unfollow all others
# d[href]["following"] = True(if I am still following)
############# Update dict
gDict = updateDict.UpdateDict()
gDict.updateFollowingFollowersDict(followers,following)
goog = googleInt.Google()
max_likes = 20#350
max_follows = 20#50
# reference dict with (g.d)
g = None
name = ""