Coder Social home page Coder Social logo

kona-cli's Introduction

Kona-CLI

This is a simple UNIX Shell Script (runs on korn shell), which uses the Konachan API to download wallpapers from the Konachan databse. Downloads sample wallpapers first and then downloads the full wallpaper in jpeg format to save bandwidth.

It has three main functionality:

  1. Grab the latest posts. When ran for the first time downloads latest 21 posts or 1 page. Once the latest wallpaper id has been cached, only newly uploaded wallpapers will be downloaded later on.

Usage: kona-cli gn gn for "get new"

  1. Download the higher resolution jpeg image of the given 6 digit id. No sample image will be downloaded. Makes sense since you made the choice :)

Usage: kona-cli id 308134

  1. Download wallpapers based on query tags.

Usage: kona-cli se 5 yae_miko se for "search"

The first field takes number of sample wallpapers to view. The second field takes search string. Moebooru API, on which Konachan is based on uses underscore (_) separated names for tags with whitespaces. So better use underscores instead of whitespaces as shown in the example.

The wallpapers are downloaded to $XDG_DATA_HOME/backgrounds or $HOME/.local/share/backgrounds.

Additional features of this fork

  • Search wallpapers with more than one query tag.

Why Konachan ?

Konachan focuses on desktop anime wallpapers rather than other image boards (Danbooru/Gelbooru) which use any resolution images.

Dependencies

Credits

  • CoolnsX

    1. pointed out recurring code
    2. forking curl id caching into background improves speed
  • justchokingaround

    1. changes taken from the commit, removed redundant curling of latest id
    2. sed condition check #10, doesn't manipulate the json data when a full json is recieved

kona-cli's People

Contributors

triplek2004 avatar maki40681 avatar

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.