rainbowstream icon indicating copy to clipboard operation
rainbowstream copied to clipboard

Multiple accounts support

Open playpauseandstop opened this issue 10 years ago • 13 comments

Hi, there!

First of all, thanks for your work, Rainbowstream looks great and very mature!

But I have one serious question, is there built-in ability to work with multiple twitter accounts for same logged-in user? Like:

  • rainbowstream opens default Twitter account stream
  • rainbowstream -C ~/.rainbow_oauth_additional opens additional Twitter acount stream

Or my only option is to create another user in system and open rainbowstream from it?

playpauseandstop avatar Sep 15 '14 19:09 playpauseandstop

Hi @playpauseandstop. Thanks for the idea :+1:

RS doesn't have multiple accounts support at this time, so if you want to log in with different Twitter account:

  • Backup current account's token: mv ~/.rainbow_oauth ~/.rainbow_oauth_whatever.
  • Start RS again.

RS will create a new ~/.rainbow_oauth for the new account and this way you won't need to create another system user.

I will consider to add a feature which allow to manage and quick switch between multiple Twitter accounts in time. Be patient :)

orakaro avatar Sep 16 '14 04:09 orakaro

:+1: Having a personal account and one or more accounts for organizations you're a member of, it would be great to be able to quickly switch between them. And if you have two accounts account1 and account2 it would be really cool if you could do stream mine account1, stream mine account2 to stream both at the same time.

danmichaelo avatar Sep 28 '14 13:09 danmichaelo

Really interested to the feature too. :+1: Behind a tmux, it will be awesome

benoittgt avatar Nov 13 '14 13:11 benoittgt

Multiple accounts will really improve my current workflow. Can't wait to see it implemented.

weems avatar Nov 13 '14 15:11 weems

Another +1 for this feature. (Or should I have 👍 this instead, whichever)

It would be great if you could rep X as OTHER_ACCOUNT in the main stream as well, so you could reply to a tweet as another authenticated user.

queuebit avatar Mar 04 '15 20:03 queuebit

Giving this a :+1: as well, came here looking specifically for this.

boj avatar Apr 13 '15 07:04 boj

This honestly shouldn't be too difficult to implement, since it (probably?) only needs to switch between different oauth keys. Maybe it can be implemented easily with an invocation variable, e.g.

rainbowstream --user=msikma

Then it switches around the oauth, and then runs normally.

Making it work from inside the application, without quitting and restarting, would be more involved.

msikma avatar Apr 23 '15 11:04 msikma

As a quick workaround to this, in rainbow.py, the code is building the path to the oauth config with the environmental variable for HOME or USERPROFILE, so if you create a new folder for each user you'd like to use, you should be able to launch rainbowstream with HOME=/home/sam/rainbowstream_USER2 rainbowstream and have it read from a separate oauth and config file. In config.py os.path.expanduser("~") is being used, which also checks HOME first, so config will be read from this location as well. None the less, a command line switch for this would be much nicer, and support for multiple accounts in the same instance would be nice too.

dotsam avatar Sep 14 '15 22:09 dotsam

Has any progress been made in this area?

rodneyrod avatar Jul 22 '16 05:07 rodneyrod

Share the same opinion as everyone here, it would be an interesting option to easily switch between accounts or at least have several terminal sessions with different profiles, wait impatiently

PSK-L avatar Nov 06 '16 20:11 PSK-L

Any progress on this? Would be a welcomed feature requested already 2 years ago..

jjaone avatar Jan 09 '17 00:01 jjaone

@benoittgt that's me too. i'm tmux'in with many things going on at the same time. I would also like to see the ability to tweet via cli through RS without needing to have the interface running. Something like "rainbowstream -t -user 'Hey what's happening guys'" or "echo 'Hey what's happening' | rainbowstream -t -user. That way you could insert it into your shell and get/send a tweet at certain times or for certain reasons etc etc.

trcyprkr avatar Apr 01 '17 13:04 trcyprkr

Hi @playpauseandstop. Thanks for the idea +1

RS doesn't have multiple accounts support at this time, so if you want to log in with different Twitter account:

* Backup current account's token: `mv ~/.rainbow_oauth ~/.rainbow_oauth_whatever`.

* Start RS again.

RS will create a new ~/.rainbow_oauth for the new account and this way you won't need to create another system user.

I will consider to add a feature which allow to manage and quick switch between multiple Twitter accounts in time. Be patient :)

Thanks. This works. I just created a copy from both accounts and is just a matter of cp ~/rainbow_oauth_account1 ~/rainbow_oauth to switch between then.

Great work

ralmcruz avatar Jan 25 '23 12:01 ralmcruz