ravizhan / ICP-spider

基于yolov8+孪生网络识别验证码的ICP备案查询程序。从工业和信息化部政务服务平台查询实时数据,高精度过验证码
GNU Affero General Public License v3.0
90 stars 23 forks source link

How to package this project into a module for use #2

Open Thewinnerof opened 1 month ago

Thewinnerof commented 1 month ago

I want to package it locally as a separate module for calling

ravizhan commented 1 month ago

I think the logic of the code is quite clear, the following code is the main process. https://github.com/ravizhan/ICP-spider/blob/236a84379a2d8ae5afd60c82c887c079eba5c6ea/main.py#L140-L152 In summary, crack.py is used to detect and decide the right order of clicking while main.py is used to get the captcha img from website and submit the result. It's worth mentioning that you still need to follow the AGPLv3 license even after you package it as a module!