eVanilla / instabot.rb

An instagram bot works without instagram api, only needs your username and password. written in ruby
153 stars 37 forks source link

How can run for several account in same time #9

Open kenshimokak opened 6 years ago

kenshimokak commented 6 years ago

How can run instabotfor several instagram account?

Can you help me please? I want using this source code for my Railsproject.

eVanilla commented 6 years ago

Hmm.. As far as I know in normally this can not be done Because you have a server which it has a IP address and you can only login into an Instagram account But you can do this with a trick.. And that is just by running it in multiple threads and multiple proxies (I don't think this would work perfectly but you can test it)

kenshimokak commented 6 years ago

I meant was how can do somthing like this code :

accounts.each do |t|
bot = Instabot.new(t.username, t.password)
bot.mode(:infinite)
bot.logout()
end

that means when logout a account start to open other. if its not possible would you like show you 1000 web project which doing instaliker and follower? I think that's not very hard

eVanilla commented 6 years ago
accounts.each do |t|
# ...

AA.. this code should work and yes It's possible with this, But I thought you wanted to login into multiple accounts at the same time...

eVanilla commented 6 years ago

Aw wait a minute you can't do it in infinite mode.. because the program gets in a loop and as I said before, you can do it by Multithreading

kenshimokak commented 6 years ago

Thanks. can you typing loop code complate? sorry I'm new user on Ruby.

also I guess codes have bug when I using from server for example Heroku or any VPS show me this error:

Your account needs veryfication or it has been banned from instagram

and when I accept that from instagram account (This was me), here process going exit very fast not waiting until you accept that from your instagram account

eVanilla commented 6 years ago

can you typing loop code complate?

You can use basic usage which I explained it here

and when I accept it from instagram account here process going exit very fast not waiting until you accept that from yor instagram account

That's not a bug.. That is a problem from yours and there are two possibilities and their own solutions

  1. You(your ip) may have been blocked from Instagram and you can solve it by anonymizing your IP by using Proxiy/Tor
  2. Or your account may not be blocked from the Instagram and you just need to open the instagram page in your browser and verify it, this should work...
kenshimokak commented 6 years ago

You checking code again. that's not block by instagram! thats normal process by instagram when your ip will be change. when I using python source code in git here https://github.com/instagrambot/instabot working well but I don't like python programming and I don't want using that.

eVanilla commented 6 years ago

I using python source code in git here

If you mean this.. you can also use the manual method and write as you like it And I looked at that bot and saw that it uses the legal API and that means the whole structure is different mHmm.. That would be good If you could tell me more about what do you want to do with it and In that case, I can help you more What do you mean by "login to multiple accounts", I mean at the same time or scheduled queue?