Python view/visit bot

Status
Not open for further replies.

rockstarrr

Regular Member
Joined
Jul 25, 2012
Messages
271
Reaction score
21
i am searching someone who can make a script wich is visiting a site for about 10 min and grab a proxy from a proxylist, and visit it again.
my should work, but its not really working



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()
 
Last edited:
Are you trying to build a traffic bot?
In which step are you failing? Does it successfully scraps proxy or is it failing to scrap proxy host and port?
 
Are you trying to build a traffic bot?
In which step are you failing? Does it successfully scraps proxy or is it failing to scrap proxy host and port?

a viewbot for mixer.com... so basically i just need a traficbot, right? i am not sure how to do it
 
Hello, we can discuss together to make this bot, I'm a python developer (this is my job). So you just need a bot that visit a stream from mixer.com for at least 10 mn through a proxy, again and again. Send me a pm and we will agree on a price :)
 
I can do it in 10 min with F# and .NET 4.7... In fact I am writing a proxy scraper and tester
 
so someone can help me ? :) i know its simple, but i cant find the User agent list
 
You realize that there are websites that are already out there that let you make a request to their api and it gives you all the information that you need for it with out having to use BeautifulSoup and parse what you need out of it. Sites like https://gimmeproxy.com/ make it really easy to use, it would make your code (and therefore debugging) smaller.


oseart
 
You realize that there are websites that are already out there that let you make a request to their api and it gives you all the information that you need for it with out having to use BeautifulSoup and parse what you need out of it. Sites like https://gimmeproxy.com/ make it really easy to use, it would make your code (and therefore debugging) smaller.


oseart
proxies is not the problem, the problem is that i simply dont know with what code in python i can make this ->
img404.jpg
 
proxies is not the problem, the problem is that i simply dont know with what code in python i can make this ->
img404.jpg
if you have the information you need for the proxy, all you would then have to do is make a request to the website you are using, using the proxy information you already have. If i remember correctly, the "requests" module in python3 has the ability to set proxy data. You would have to look at the documentation for a better understanding. Unless you offer up a bounty to someone to do this for you, I really doubt anyone is just going to do it for you for the heck of it. Besides, whats the fun in programing if you just get someone to do it for you instead of doing it yourself, learning how, and making it better for you.

oseart
 
if someone wants to help me to create a viewbot send me a PM. i pay
 
Hello, we can discuss together to make this bot, I'm a python developer (this is my job). So you just need a bot that visit a stream from mixer.com for at least 10 mn through a proxy, again and again. Send me a pm and we will agree on a price :)

Hi ,, i'm looking for bot or script (autoclick) for > short link like : adf ly or shorte st ...
can you help me please ? :)
 
Hello, would anybody be able to make a viewbot for Mixer.com It must be able to add viewers count to a live stream, not just to the total view count of the streamers profile page. I am willing to pay. Let me know as soon as possible. Thanks
 
@seriousjoker How is the bot coming up? If u r done with it please help a brother out.
im on it.
need to make it perfect tho. not sure using requests. i prefer selenium to actually use a real browser, so css, javascript etc gets loaded.
that makes the traffic look also more legit. : )
 
im on it.
need to make it perfect tho. not sure using requests. i prefer selenium to actually use a real browser, so css, javascript etc gets loaded.
that makes the traffic look also more legit. : )
OK. All the grease to ur elbow bro
 
hello guys , is there any script from which we can increase the view of real time live videos of facebook youtube? please help
 
hello guys , is there any script from which we can increase the view of real time live videos of facebook youtube? please help

i am very sure that if you had researched very well you would have seen the script somewhere, even here in BHW. Everybody is busy on something to start looking for the script for you.
 
im on it.
need to make it perfect tho. not sure using requests. i prefer selenium to actually use a real browser, so css, javascript etc gets loaded.
that makes the traffic look also more legit. : )
Hello, have you managed to get the bot working? If yes, Please get back to me, I would love to use it :)
 
Status
Not open for further replies.
Back
Top