Question about bots using csv

Derf

Newbie
Joined
Jun 18, 2017
Messages
47
Reaction score
23
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!
 
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.
 
Last edited:
Let me try to fix your bots check your pm i send my email
 
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.

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
 
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
 

Attachments

  • download_20170617_214447.jpg
    download_20170617_214447.jpg
    812.2 KB · Views: 40
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... ; )
 
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?
 
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?
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/
 
I also can offer you access to a working bot maybe that will also help!
 
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!
Have you figured out how to manipulate the current bot and change it around a bit? I recently purchased bot from said developer but the communication and updates are awful, I've been waiting on my license for 13 days now with no response.
 
Have you figured out how to manipulate the current bot and change it around a bit? I recently purchased bot from said developer but the communication and updates are awful, I've been waiting on my license for 13 days now with no response.
The bot you bought, is it the one for $97?
 
Did you receive the whole setup or you just got a licence to connect and run? I have a little bit different one i am using right now
 
Did you receive the whole setup or you just got a license to connect and run? I have a little bit different one i am using right now
I received the setup download. So it works, but homeboy never sent me the license key.
 
Yeah, the developer never sent me a key for the license.
 
Back
Top