https://github.com/andefined/twtarget
https://github.com/andefined/twtarget
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andefined/twtarget
- Owner: andefined
- License: mit
- Created: 2021-03-11T22:50:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-12T08:16:38.000Z (over 5 years ago)
- Last Synced: 2025-03-30T07:13:55.396Z (about 1 year ago)
- Language: Go
- Size: 568 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# twtarget
twtarget (or Twitter Target) is a CLI tool, written in [Go](https://golang.org/), that collects data from twitter API for a given User.
## Installation
You can download the binaries from the [releases](https://github.com/andefined/twtarget/releases) section, or you can install it with Go.
```bash
go install github.com/andefined/twtarget
```
## How to use
```
NAME:
twtarget
USAGE:
twtarget [global options] command [command options] [arguments...]
VERSION:
0.1.0
DESCRIPTION:
twtarget (or Twitter Target) is a CLI tool that collects data from twitter API for a given User.
COMMANDS:
init Initialize a new Target (User). The command will create a target folder and subfolders with the configuration files and collected data.
fetch Fetch data for a given Target (User).
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
```
## Initialize a Target
Before you get started you need to add your Twitter API credentials into the configuration file [configuration](conf/default.yml).
```bash
twtarget init -c conf/default.yaml [target screen name]
```
## Get Friends
```bash
twtarget fetch --user --friends [target screen name]
```
## Get Followers
```bash
twtarget fetch --user --followers [target screen name]
```