Git Product home page Git Product logo

hg-ha / icp_query Goto Github PK

View Code? Open in Web Editor NEW
251.0 251.0 43.0 16.87 MB

ICP备案查询,从工业和信息化部政务服务平台抓取实时数据,提供本地API,自动过验证码,支持Web、APP、小程序、快应用名称查询,违法违规应用查询,支持根据备案号查询,支持根据企业名称查询

Home Page: https://hg-ha.github.io/app/icpb

Python 93.51% Dockerfile 6.49%

icp_query's People

Contributors

hg-ha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

icp_query's Issues

docker部署后,查询失败

docker完成部署后,通过requests请求,中间时间很久很久后出现失败,返回错误码122。
docker内部是否有日志存在,该服务对于部署的机器除磁盘空间外还需要额外的条件么。
image
image

【解决】ImportError: libGL.so.1: cannot open shared object file: No such file or directory

错误信息

Traceback (most recent call last):
  File "icpApi.py", line 13, in <module>
    from ymicp import beian
  File "/root/icpApi_20240225_yolo8/ymicp.py", line 13, in <module>
    import cv2
  File "/root/venv_icpapi/lib/python3.8/site-packages/cv2/__init__.py", line 181, in <module>
    bootstrap()
  File "/root/venv_icpapi/lib/python3.8/site-packages/cv2/__init__.py", line 153, in bootstrap
    native_module = importlib.import_module("cv2")
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

pip 安装完成后启动报错,在Python import cv2报错找到解决方案。我用的是第一个方案, 安装opencv-python-headless模块,以安装所有相关的依赖项

pip3 uninstall opencv-python
pip3 install opencv-python-headless

成功手动安装

docker日志里全是这种错误

[2024/01/12 11:21:09] ppocr WARNING: Since the angle classifier is not initialized, it will not be used during the forward process

大佬能分享 Dockerfile 吗?

尝试自己写了下 dockerfile,可以正常启动访问,但是使用一直提示 Cannot serialize non-str key False。
是有限制吗?还是说 docker 版不开源?

FROM python:3.8.18-slim-bullseye

WORKDIR /

ENV TZ=Asia/Shanghai

# Install necessary packages for building and running your application, including libglib2.0-0
RUN apt-get update -y && apt-get install -y \
    gcc \
    make \
    python3-dev \
    wget \
    unzip \
    libgl1-mesa-glx \
    libglib2.0-0 \
    && wget https://github.com/HG-ha/ICP_Query/raw/main/2023-12-9_auto_icp-Api.zip \
    && unzip 2023-12-9_auto_icp-Api.zip && cd icp_Api \
    && pip install --upgrade pip \
    && pip install -r requirements.txt -i https://mirror.baidu.com/pypi/simple \
    && sed -i 's/127.0.0.1/0.0.0.0/g' /icp_Api/icpApi.py

CMD ["python", "/icp_Api/icpApi.py"]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.