From a1fab4a8f27af35e496efe584ffd7ad1bc4ea343 Mon Sep 17 00:00:00 2001 From: Nick Bernd Espig Date: Wed, 26 Feb 2020 21:58:32 +0100 Subject: [PATCH] Add support for lolibooru --- changelog.md | 4 ++++ docs/source/quick_start_guide.rst | 1 + provisional_test.py | 7 +++++++ pybooru/resources.py | 4 +++- 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index f8d3118..92d8584 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Pybooru - Changelog +## Pybooru 4.2.0 - (unreleased) + +- Add support for Lolibooru + ## Pybooru 4.1.0 - (2017-02-08) - Pybooru: refactored `_get_status()` - Python 3.6 support diff --git a/docs/source/quick_start_guide.rst b/docs/source/quick_start_guide.rst index 3912119..95762a2 100644 --- a/docs/source/quick_start_guide.rst +++ b/docs/source/quick_start_guide.rst @@ -113,3 +113,4 @@ Pybooru has a list of default sites that allow you to use Pybooru without "site_ - yandere (`Yande.re `_) - danbooru (`Danbooru `_) - safebooru (`Safebooru `_) +- lolibooru (`Lolibooru `_) diff --git a/provisional_test.py b/provisional_test.py index 73275af..ad4979c 100644 --- a/provisional_test.py +++ b/provisional_test.py @@ -10,6 +10,13 @@ kona_post = konachan.post_list() print(konachan.last_call) +lolibooru = Moebooru("lolibooru") + +kona_tags = lolibooru.tag_list(order='date') +print(lolibooru.last_call) +kona_post = lolibooru.post_list() +print(lolibooru.last_call) + danbooru = Danbooru('danbooru') dan_tags = danbooru.tag_list(order='name') diff --git a/pybooru/resources.py b/pybooru/resources.py index 0ce4a73..c6db14a 100644 --- a/pybooru/resources.py +++ b/pybooru/resources.py @@ -24,7 +24,9 @@ 'danbooru': { 'url': "https://danbooru.donmai.us"}, 'safebooru': { - 'url': "https://safebooru.donmai.us"} + 'url': "https://safebooru.donmai.us"}, + 'lolibooru': { + 'url': "https://lolibooru.moe"}, }