Oreos Are Bae

Junior Member
Joined
Dec 10, 2015
Messages
128
Reaction score
26
I am looking for a view bot for mixer or twitch in python I found one on here but I cant get it to work.
Can anyone get it to work and help me out


import random, time, requests
from selenium import webdriver
from selenium.webdriver.common.proxy import *
from bs4 import BeautifulSoup
USER_AGENTS_FILE = './user_agents.txt'
RUNNING = True
def LoadUserAgents(uafile=USER_AGENTS_FILE) :
uas = []
with open(uafile, 'rb') as uaf:
for ua in uaf.readlines() :
if ua:
uas.append(ua.strip())
random.shuffle(uas)
return uas
uas = LoadUserAgents()
while RUNNING == True:
address = []
PROXY_HOST = ""
PROXY_PORT = ""
response = requests.get('https://www.sslproxies.org
')
soup = BeautifulSoup(response.content, "html.parser")
rows = soup.findAll("tr")
for row in rows:
if(len(row.findAll("td")) == 8):
PROXY_HOST = row.contents[0].contents[0]
PROXY_PORT = row.contents[1].contents[0]
profile = webdriver.FirefoxProfile()
profile.set_preference('general.useragent.override', random.choice(uas))
profile.set_preference("network.proxy.type", 1)
profile.set_preference("network.proxy.http",PROXY_HOST)
profile.set_preference("network.proxy.http_port",int(PROXY_PORT))
profile.update_preferences()
driver = webdriver.Firefox(firefox_profile=profile)
driver.set_page_load_timeout(10)
try:
driver.get('http://www.ipchicken.com/'
)
time.sleep(60)
driver.quit()
except:
driver.quit()
 
Top