Skip to content

Commit

Permalink
Update demo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyihan0 authored Dec 19, 2023
1 parent 406e4cc commit 0d90cf5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ def appapi_search(aapi):
novel = json_result.novels[0]
print(">>> {}, origin url: {}".format(novel.title, novel.image_urls["large"]))

json_result = aapi.search_illust("AI生成", search_target="exact_match_for_tags", search_ai_type=0)
# 关闭AI搜索选项后,将过滤掉所有illust_ai_type=2的插画,而illust_ai_type=1 or 0 的插画将被保留
# 但是,加入了"AI生成"的tag却没有在作品提交时打开“AI生成”的开关的作品不会被筛选出结果列表
print(json_result["illusts"][0])


def appapi_user_search(aapi):
json_result = aapi.illust_ranking("day_male")
Expand Down

0 comments on commit 0d90cf5

Please sign in to comment.