https://github.com/kazdevl/imgdler
https://github.com/kazdevl/imgdler
golang twitter twitter-api-v2
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kazdevl/imgdler
- Owner: kazdevl
- Created: 2021-12-14T12:41:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-16T01:04:01.000Z (over 4 years ago)
- Last Synced: 2024-06-20T11:48:44.221Z (almost 2 years ago)
- Topics: golang, twitter, twitter-api-v2
- Language: Go
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# imgdler
imgdler is a command for downloading tweet's images and read them.
## Install
```bash
go install github.com/kazdevl/imgdler/cmd/imgdler@latest
```
## Sample Usage with image
### 1. There are some tweets' images you want get

### 2. Use start command for downloading images periodically
```bash
$ imgdler start -a _kz_dev -k テスト -t [your OAuth 2.0. Bearer tokens]
```
### 3. Check downloaded
```bash
$ imgdler list
# output
The list of author names that you can read
[0]: _kz_dev
You cna read with `imgdler open [author name]`
```
### 3. Read images
```bash
$ imgdler open _kz_dev
```
result

## How To Use
### Help
imgdler have three main commands.
- start: Periodically downloads images of tweets that match the specified criteria.
- list: Get a list of authors whose names are available for reading
- open: Open browser for reading the image list of a given author.
### Start
start is a command that periodically downloads images of tweets that match the specified criteria.
above command downloads specified tweet's images every night at 9:00 p.m.
- "author name" specifies author name of tweets that user of imgdler want.
- this is twitter user name withour "@".
- "keyword" specifies keywords that the tweet should contain.
- "token" specifies your OAuth 2.0. Bearer tokens.
- "max" specifies the number of tweets to retrieve.
```bash
imgdler start -a [author name] -k [keyword] -t [token] -m [max]
```
### list
list is a command for getting a list of authors whose names are available for reading
```bash
$ imgdler list
# output if you have _kz_dev's images
The list of author names that you can read
[0]: _kz_dev
You cna read with `imgdler open [author name]`
$ imgdler list
# output if you don't have any auhtor's images
The list of author names that you can read
no author names
You cna read with `imgdler open [author name]`
```
### open
open is a command for opening browser for reading the image list of a given author.
```bash
$ imgdler open [author name]
# if you have _kz_dev's images
$ imgdler open _kz_dev
```