Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.3 KB

README.md

File metadata and controls

64 lines (45 loc) · 1.3 KB

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.