https://github.com/voldien/konachan
Terminal query tool for query information from konachan.
https://github.com/voldien/konachan
json konachan konachan-api query
Last synced: 27 days ago
JSON representation
Terminal query tool for query information from konachan.
- Host: GitHub
- URL: https://github.com/voldien/konachan
- Owner: voldien
- License: gpl-3.0
- Created: 2017-01-15T15:24:10.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-10T05:55:20.000Z (about 8 years ago)
- Last Synced: 2025-03-29T06:24:22.422Z (7 months ago)
- Topics: json, konachan, konachan-api, query
- Language: C
- Homepage:
- Size: 54.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# konachan #
----
The konachan program is a command line tool for query information from [konachan.net](https://konachan.net).
It uses HTTP/S for sending request a GET request to to [konachan.net](https://konachan.net). Where the konachan website returns
a HTTP/S response along with JSON data that later gets parsed by using the *json-c* library. The values is extracted by the attribute names.
To see more details of how konachan's API works, see [konachan API](https://konachan.net/help/api) .
For HTTPS, it uses TLSv1.2 for creating a secure connection and maintaining a secure connection with help of the OpenSSL library.
# Motivation #
The intention of the project is to create a simple command line tool for query information from konachan. Where it should be easy to modify the behavior of the query and what information to query.
# Examples #
------
1. Get first search result with the tag 'cat', print out previews URL. ( preview URL is the default return value)
```
konachan -t "cat"
```
2. Get 42:th and 43:th search result in safe mode with the tag 'cat', print out* preview URL*. ( safe mode is by default enabled )
```
konachan -S -t "cat" -p 42 -l 2 -f "preview"
```
3. Get first search result with tag 'cat' with a non secure connection. ( Using only HTTP )
```
konachan -n -t "cat" -f "preview"
```
4. Get multiple attributes, print out *preview url* first, *score* second and *id* last with whitespace in between each attributes.
```
konachan -t "cat" -f "preview score id"
```
See *konachan(1)* for more details of what options are available.
# Dependencies #
---------
In order to compile the program, the following Debian packages is required.
```
apt-get install openssl-dev json-c-dev
```
## License ##
-------
This project is licensed under the GPL+3 License - see the [LICENSE](LICENSE) file for details.