Skip to content

Commit

Permalink
v2.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kitUIN committed Mar 14, 2022
1 parent 47aa752 commit 43bf73d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion PicImageSearch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

__author__ = 'kitUIN'
__license__ = 'MIT License'
__contributors__ = ['kitUIN', 'lleans',"chinoll"]
__contributors__ = ['kitUIN', 'lleans',"chinoll","NekoAria"]
__email__ = '[email protected]'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="PicImageSearch",
version='2.2.6',
version='2.2.7',
author="kitUIN",
author_email="[email protected]",
description="PicImageSearch APIs for Python 3.x 适用于 Python 3 以图搜源整合API",
Expand Down
2 changes: 1 addition & 1 deletion test/Async/test1.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


async def main():
async with NetWork(proxy='http://127.0.0.1:8888') as client:
async with NetWork() as client:
tracemoe = AsyncTraceMoe(mute=False, size=None, client=client)
res = await tracemoe.search('https://trace.moe/img/tinted-good.jpg') # 搜索网络图片
# res = await tracemoe.search(r'C:/Users/kulujun/Pictures/1.png') # 搜索本地图片
Expand Down
6 changes: 3 additions & 3 deletions test/Async/test3.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

async def main():
async with NetWork() as client:
ascii2d = AsyncAscii2D(client=client)
ascii2d = AsyncAscii2D(client=client, bovw=True)
res = await ascii2d.search('https://pixiv.cat/77702503-1.jpg')
# res = await ascii2d.search(r'C:/kitUIN/img/tinted-good.jpg') # 搜索本地图片
#logger.info(res.origin) # 原始数据
#logger.info(res.raw) #
# logger.info(res.origin) # 原始数据
# logger.info(res.raw) #
logger.info(res.raw[1]) # <NormAscii2D(title=['2020.08.30'], authors=['hews__'],mark=['twitter'])>
logger.info(res.raw[1].thumbnail) # https://ascii2d.net/thumbnail/2/c/5/e/2c5e6a18fbba730a65cef0549e3c5768.jpg
logger.info(res.raw[1].title) # 2020.08.30
Expand Down

0 comments on commit 43bf73d

Please sign in to comment.