Skip to main content

PicImageSearch APIs for Python 3.x 适用于 Python 3 以图搜源整合API

Project description

PicImageSearch

✨ 聚合识图引擎 用于以图搜源✨

license pypi python release release

📖文档 · 🐛提交建议

支持

简要说明

详细见文档 或者demo
同步请使用from PicImageSearch.sync import ...导入
异步请使用from PicImageSearch import Network,...导入
推荐使用异步

简单示例

from loguru import logger
from PicImageSearch.sync import SauceNAO

saucenao = SauceNAO()
res = saucenao.search('https://pixiv.cat/77702503-1.jpg')
# res = saucenao.search(r'C:/kitUIN/img/tinted-good.jpg') #搜索本地图片
logger.info(res.origin)  # 原始数据
logger.info(res.raw)  #
logger.info(res.raw[0])  #
logger.info(res.long_remaining)  # 99
logger.info(res.short_remaining)  # 3
logger.info(res.raw[0].thumbnail)  # 缩略图
logger.info(res.raw[0].similarity)  # 相似度
logger.info(res.raw[0].title)  # 标题
logger.info(res.raw[0].author)  # 作者
logger.info(res.raw[0].url)
from PicImageSearch import SauceNAO, Network

async with Network() as client:  # 可以设置代理 Network(proxies='http://127.0.0.1:10809')
    saucenao = SauceNAO(client=client)  # client不能少
    res = await saucenao.search('https://pixiv.cat/77702503-1.jpg')
    # 下面操作与同步方法一致

安装

  • 此包需要 Python 3.6 或更新版本。
  • pip install PicImageSearch
  • 或者
  • pip install PicImageSearch -i https://pypi.tuna.tsinghua.edu.cn/simple

Star History

Star History

Project details


Release history Release notifications | RSS feed

This version

3.3.7

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PicImageSearch-3.3.7.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PicImageSearch-3.3.7-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file PicImageSearch-3.3.7.tar.gz.

File metadata

  • Download URL: PicImageSearch-3.3.7.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for PicImageSearch-3.3.7.tar.gz
Algorithm Hash digest
SHA256 105c20b7a2a33affdaa221c5711fde8d17388d1b0942305309afa5564f0e5627
MD5 209202d9744a54178bb779e0d91c77ae
BLAKE2b-256 d759e668d7420afbefc3af9d7fbaeecf1ef1015ed374649fd3603ff7313da36b

See more details on using hashes here.

File details

Details for the file PicImageSearch-3.3.7-py3-none-any.whl.

File metadata

  • Download URL: PicImageSearch-3.3.7-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for PicImageSearch-3.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0929279b0d0e643dd30c9675c7b8e558cb0ef51a2976567dc25aeee23b14f2d1
MD5 1406fe805a5b6411f3f5e0ab016285a8
BLAKE2b-256 633b64aabc135fae91024c1663a6dd8bf4be30146088b012ef0adb9d55048ded

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page