An open API service indexing awesome lists of open source software.

https://github.com/tyru/fork-twitter-account

List specified account's following users & Follow given users
https://github.com/tyru/fork-twitter-account

Last synced: 12 months ago
JSON representation

List specified account's following users & Follow given users

Awesome Lists containing this project

README

          

# fork-twitter-account

List specified account's following users & Follow given users

# Usage

Define required environment variables:

```
$ export TWITTER_CONSUMER_KEY='...'
$ export TWITTER_CONSUMER_SECRET='...'
$ export TWITTER_ACCESS_TOKEN='...'
$ export TWITTER_ACCESS_TOKEN_SECRET='...'
```

And run:

```
$ go run list-following.go | go run follow-users.go
```

But above execution doesn't care abandonment due to rate limit, or and so on.
You can save `not followed users` as `followings.txt` like this:

```
$ go run list-following.go _tyru_ >followings.txt
$ go run follow-users.go -w followings.txt
```

Followed users are removed from `followings.txt` even error response were returned from Twitter API.
So if above `go run follow-users.go -w followings.txt` exits with an error, you can re-run `go run follow-users.go -w followings.txt` again.