Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import selenium
- from selenium import webdriver
- from selenium.webdriver.common.proxy import Proxy, ProxyType
- from time import sleep
- from os import system
- print(' /$$$$$$ \n'
- ' /$$__ $$ \n'
- ' | $$ \__/ /$$ /$$\n'
- ' | $$ | $$ | $$\n'
- ' | $$ | $$ | $$\n'
- ' | $$ $$| $$ | $$\n'
- ' | $$$$$$/| $$$$$$/\n'
- ' \______/ \______/ \n'
- ' =- 1 . 0 -=\n')
- try:
- contas_folder = open('contas.txt', 'r')
- contas = contas_folder.readlines()
- contas_folder = open('contas.txt', 'r')
- contas_len = len(contas_folder.readlines())
- except:
- print('[!] ERROR > Diretorio contas.txt nao encontrado :( \n \n ')
- system('pause')
- link = str(input('[?] - Insira a URL da canal da twitch : '))
- num = -1
- def main():
- global num
- while int(num) <= int(contas_len):
- try:
- num += 1
- browser = webdriver.Chrome()
- browser.get(link)
- browser.find_element_by_xpath('//*[@id="root"]/div/div[2]/nav/div/div[3]/div[3]/div/div[1]/div[1]/button/div/div').click()
- sleep(2)
- browser.find_element_by_xpath('/html/body/div[2]/div/div/div/div/div/div[1]/div/div/form/div/div[1]/div/div[2]/input').send_keys(contas[num][:-1])
- browser.find_element_by_xpath('/html/body/div[2]/div/div/div/div/div/div[1]/div/div/form/div/div[2]/div/div[1]/div[2]/div[1]/input').send_keys('rikmak21')
- sleep(2)
- browser.find_element_by_xpath('/html/body/div[2]/div/div/div/div/div/div[1]/div/div/form/div/div[3]/button').click()
- sleep(4)
- browser.find_element_by_xpath('//*[@id="root"]/div/div[2]/div[2]/main/div[1]/div/div[2]/div[2]/div[1]/div/div/div[1]').click()
- sleep(4)
- browser.close()
- except:
- print("[!] - ERROR - Iniciando Sessao Novamente ... ")
- browser.close()
- main()
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement