Skip to content

A flask server that translate szuru api to danbooru style. (To let danbooru clients connect to szurubooru)

License

Notifications You must be signed in to change notification settings

MILES-FAN/Szuru-Dan

Repository files navigation

Szuru-Dan

A flask server that translate szuru api to danbooru style. (To let danbooru clients connect to szurubooru server)

How to use

  1. Clone this repository

    git clone https://github.com/MILES-FAN/Szuru-Dan.git
  2. Install the requirements

    pip install -r requirements.txt
  3. Edit the config file

    Edit the config_.ini file to set the url of the szurubooru server and the port of this api translator.

    Then rename the config_.ini to config.ini

    [API]
    #The url of the szurubooru server
    base_url=http://127.0.0.1:8080/ 
    
    #The domain of the szurubooru server, left it empty if you don't have a domain
    domain_url=http://yourdomain.com/ 
    
    #The port of the api translator
    port=9000
    
  4. Run the server

    python api-translator.py
  5. Now you can use your favorite danbooru clients to connect to the server.

Supported API

  • /posts.json
  • /posts/{id}.json
  • /favorites.json
  • /favorites/{id}.json
  • /post_votes.json
  • /users/{id}.json
  • /profile.json
  • /tags/autocomplete.json

Tested Clients

Android:

IOS:

PC:

  • WIP.

About

A flask server that translate szuru api to danbooru style. (To let danbooru clients connect to szurubooru)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages