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
- Host: GitHub
- URL: https://github.com/tyru/fork-twitter-account
- Owner: tyru
- Created: 2017-12-31T11:56:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-04T13:45:04.000Z (over 8 years ago)
- Last Synced: 2025-01-14T07:30:02.203Z (over 1 year ago)
- Language: Go
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.