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

Question about bots using csv

Discussion in 'Black Hat SEO Tools' started by Derf, Jun 18, 2017.

  1. Derf

    Derf Newbie

    Joined:
    Jun 18, 2017
    Messages:
    5
    Likes Received:
    0
    Hello! hoping someone can help me out, for the past couple months ive been using a bot that i bought for quite a bit of money that logged into spotify, using a csv file and played songs for a specific amount of time that i wanted it to ect ect
    now im building my own bot (trying to) because the developer of the bot is horrible, never answers my questions, updates are few and far between, and for some reason, im lucky if i dont get hit with " invalid license. allowed number of activations has been exceeded"

    anyways, if youre reading this man im sorry but your customer service skills arent the best

    now to my question, one thing i cant seem to find anywhere no matter how hard i research or use different keywords, how do i get the bot that i am creating to sign into a unique login, ie: 10 different chrome browsers open, 10 diff accounts in csv file under format
    "user1,password1
    user2,password2" ect ect

    how do i get browser one to attempt to log into user1,password1 and if login fails, then for it to close out and reopen and try to use user2,password2 if that makes any sense

    also, so far im using like generic notepad to create this script, any help as to wether i should be using some kind of program (ie: i hear alot about python and stuff) that would work more efficiently or any tips would be greatly appreciated, im on windows 10 so something windows could run

    sorry for the long post, thank you for taking the time to read it and hopefully someone can help me out!
     
  2. SEO

    SEO Jr. VIP Jr. VIP

    Joined:
    Jan 6, 2017
    Messages:
    865
    Likes Received:
    650
    It sounds like you might be asking for 1 of 2 things. Multi-threading, or loops.

    Multi-threading allows you to make simultaneous, but distinctly separate connections. For example, being logged into both users 1 & 2 at the same time.

    Trying user 1, then trying user 2 and so on after, is a simple loop.

    Most platforms will support this. For example, Python + Selenium.

    I'm currently learning how to use Ubot Studio.
     
    • Thanks Thanks x 1
    Last edited: Jun 18, 2017
  3. kmzlink

    kmzlink Junior Member

    Joined:
    Feb 11, 2009
    Messages:
    128
    Likes Received:
    16
    Occupation:
    Bots Maker
    Location:
    Loop Inside a Loop
    Let me try to fix your bots check your pm i send my email
     
    • Thanks Thanks x 1
  4. Derf

    Derf Newbie

    Joined:
    Jun 18, 2017
    Messages:
    5
    Likes Received:
    0
    thank your for responding!

    what youre saying sounds correct to me about the loop, here is the bot that im basing everything on " spotviewbot(dot)com "

    notice how his csv file has multiple accounts where username and password is seperated by commas and the bot goes down the list, thats basically what i want to get done

    a simple bot that logs into the accounts on the csv list ("simple" cus im 100% noob)

    ive figured out how to allow google chrome to use different accounts ie: manage accounts, so i think thats out of the way? if i manually make seperate google chrome accounts it allows me to manually sign into the diff spotify accounts all at the same time without duplicate accounts or cookie problems and stuff, now im trying to figure out how to automate it
     
  5. Derf

    Derf Newbie

    Joined:
    Jun 18, 2017
    Messages:
    5
    Likes Received:
    0
    here is a picture of the bot, before the update and eventual invalid license error that ive been receiving
    basically number of threds: i set as 10, so it opens 10 threads of chrome, and signs into 10 diff accounts at a time
    min of seconds: i put at 35 (30 is the minimum to count as a stream) max is 40
    so basically inbetween 35 and 40 the bot will hit the next button inside of spotify so that it will go to the next track (if it is one track the bot has it on repeat so it will repeat said song)
    playlist url: the url the bot is trying to get to, i have blanked out to protect my spotify account
    number of plays: how many plays you want each thread to play before closing the thread and starting another instance, with the update he added min and max number of plays which worked as the min/max number of seconds worked
    total number of plays: how many plays in total you want the bot to achieve before closing the program entirely
    2captcha: tells itself
    auto restart: he had another program it seemed that restarted the program im talking about every "x" amount of time, (you input "x") i had it at 2 hours, so every 2 hours it would shut down the program and restart, this isnt something im too worried about
    facebook login: didnt work, dont care about it
    hide browser: self explanitory, dont care about it
    click next: clicks next after the seconds of play comes up
    repeat on: repeats the playlist
    random actions: goes to someone elses playlist or page before going to the playlist that you have specified in the bot, Dont care about it

    hopefully this puts things in perspective
     

    Attached Files:

  6. jtrash01

    jtrash01 Regular Member

    Joined:
    Nov 5, 2013
    Messages:
    270
    Likes Received:
    119
    Location:
    BARCELONA, SPAIN
    What you want is to have several sessions. Does not matter if you use multithreading or you do it sequentially. This will not give you multiple and isolated sessions by itself.
    Selenium is a library that creates browser instances, every instance you create will hold their own session, so it can handle different sign-in's at the same time. THIS is what you want:

    1) Use python. Its easy.
    2) Use a good IDE. PyCharm Professional (don't use the community edition if you need databases). And learn how to license it (google "pycharm 2017 license server")
    3) Use Selenium + Chromedriver
    4) One of my most simple scripts. A pretty basic poster for locanto.es (will only work for spanish lang, since I hardcoded things):

    5) The logic to create several instances should be a bit different from the example I shown above in the gist.
    Code:
    import csv
    
    try:
     
        # MORE INFO ON HOW TO READ CSV: https://docs.python.org/3.6/library/csv.html#csv.DictReader
        with open('users.csv') as csvfile:
            users = csv.DictReader(csvfile)
    
        for user in users:
            # HERE YOU PUT THE LOGIN FOR EACH USER.
            # LOGIN
            # FILL A FORM
            # CLICK ONE BUTTON
            # ETC
    
            # THIS IS HOW YOU CAN ACCESS THE USERS IN THE LIST I CREATED
            print(user['login'], ' - ', user['pass'])
    except Exception as e:
        print(traceback.print_exc())
        print(e)
    finally:
        pass
    
    Extra:
    • Learn how to automate the web doing HTTP Requests in python with "requests" library
    • Learn how you can use "LXML" python library to scrape websites.
    • Learn how to use "sqlite3" library (its a python build-in library) so you can stop using csv and use a local database.
    My two cents... ; )
     
    • Thanks Thanks x 1
  7. Derf

    Derf Newbie

    Joined:
    Jun 18, 2017
    Messages:
    5
    Likes Received:
    0
    Awesome, thank you very much @jtrash01 , time for me to dig in and do some research/experimenting

    so about the licensing thing, do i have to license it if i plan on using it strictly for my private use?
     
  8. jtrash01

    jtrash01 Regular Member

    Joined:
    Nov 5, 2013
    Messages:
    270
    Likes Received:
    119
    Location:
    BARCELONA, SPAIN
    You should note Selenium is available for several languages. If you're programing in another language maybe you could use selenium with it too.

    And for a headless instance (hidden browser) you could use http://phantomjs.org/
     
    • Thanks Thanks x 1