Giter Site home page Giter Site logo

konachan's Introduction

konachan


The konachan program is a command line tool for query information from konachan.net. It uses HTTP/S for sending request a GET request to to 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 .

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"
  1. 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"
  1. Get first search result with tag 'cat' with a non secure connection. ( Using only HTTP )
konachan -n -t "cat" -f "preview"
  1. 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 file for details.

konachan's People

Contributors

voldien avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

konachan's Issues

SSL with HTTPS

The SSL implementation for enabling HTTPS does not work anymore.

HTTPS fault.

HTTPS request does not work any longer with the current SSL implementation for creating a secure connection with the OpenSSL library.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.