A flask server that translate szuru api to danbooru style. (To let danbooru clients connect to szurubooru server)
-
Clone this repository
git clone https://github.com/MILES-FAN/Szuru-Dan.git
-
Install the requirements
pip install -r requirements.txt
-
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
toconfig.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
-
Run the server
python api-translator.py
-
Now you can use your favorite danbooru clients to connect to the server.
/posts.json
/posts/{id}.json
/favorites.json
/favorites/{id}.json
/post_votes.json
/users/{id}.json
/profile.json
/tags/autocomplete.json
Android:
IOS:
PC:
- WIP.