1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Python view/visit bot

Discussion in 'Scripting' started by rockstarrr, Jul 10, 2017.

  1. rockstarrr

    rockstarrr Regular Member

    Joined:
    Jul 25, 2012
    Messages:
    256
    Likes Received:
    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: Jul 10, 2017
  2. LostLife

    LostLife Regular Member

    Joined:
    May 12, 2017
    Messages:
    265
    Likes Received:
    288
    Gender:
    Male
    Occupation:
    Software Engineer
    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?
     
  3. rockstarrr

    rockstarrr Regular Member

    Joined:
    Jul 25, 2012
    Messages:
    256
    Likes Received:
    21
    a viewbot for mixer.com... so basically i just need a traficbot, right? i am not sure how to do it
     
  4. mazert

    mazert Newbie

    Joined:
    Aug 9, 2017
    Messages:
    6
    Likes Received:
    10
    Gender:
    Male
    Occupation:
    developping softwares and websites
    Location:
    France
    Home Page:
    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 :)
     
  5. botrockets

    botrockets Regular Member

    Joined:
    Mar 16, 2013
    Messages:
    355
    Likes Received:
    550
    Gender:
    Male
    Occupation:
    Entrepreneur
    Location:
    BotRockets
    I can do it in 10 min with F# and .NET 4.7... In fact I am writing a proxy scraper and tester
     
  6. rockstarrr

    rockstarrr Regular Member

    Joined:
    Jul 25, 2012
    Messages:
    256
    Likes Received:
    21
    so someone can help me ? :) i know its simple, but i cant find the User agent list
     
  7. oseart

    oseart Registered Member

    Joined:
    Oct 30, 2015
    Messages:
    65
    Likes Received:
    26
    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
     
  8. rockstarrr

    rockstarrr Regular Member

    Joined:
    Jul 25, 2012
    Messages:
    256
    Likes Received:
    21
    proxies is not the problem, the problem is that i simply dont know with what code in python i can make this ->
     
  9. oseart

    oseart Registered Member

    Joined:
    Oct 30, 2015
    Messages:
    65
    Likes Received:
    26
    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
     
  10. rockstarrr

    rockstarrr Regular Member

    Joined:
    Jul 25, 2012
    Messages:
    256
    Likes Received:
    21
    if someone wants to help me to create a viewbot send me a PM. i pay
     
  11. imadalves

    imadalves Newbie

    Joined:
    Sep 27, 2017
    Messages:
    1
    Likes Received:
    0
    Gender:
    Male
    Hi ,, i'm looking for bot or script (autoclick) for > short link like : adf ly or shorte st ...
    can you help me please ? :)
     
  12. ProffesorH

    ProffesorH Newbie

    Joined:
    Oct 3, 2017
    Messages:
    1
    Likes Received:
    0
    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
     
  13. headstyle

    headstyle Newbie

    Joined:
    Saturday
    Messages:
    2
    Likes Received:
    0
    rockstarr pn me
     
  14. Stkr Dngr

    Stkr Dngr Newbie

    Joined:
    Sep 14, 2017
    Messages:
    7
    Likes Received:
    0
    @seriousjoker How is the bot coming up? If u r done with it please help a brother out.
     
  15. headstyle

    headstyle Newbie

    Joined:
    Saturday
    Messages:
    2
    Likes Received:
    0
    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. : )