Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andefined/twtarget
https://github.com/andefined/twtarget
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/andefined/twtarget
- Owner: andefined
- License: mit
- Created: 2021-03-11T22:50:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-12T08:16:38.000Z (over 3 years ago)
- Last Synced: 2024-06-19T05:23:04.974Z (5 months ago)
- Language: Go
- Size: 568 KB
- Stars: 0
- Watchers: 2
- 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:
twtargetUSAGE:
twtarget [global options] command [command options] [arguments...]VERSION:
0.1.0DESCRIPTION:
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 commandGLOBAL 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]
```