# ICP-Checker ä¸ä¸ªç®åçAPIï¼ç¨äºæ¥è¯¢ç½ç«æä¼ä¸çICPå¤æ¡ä¿¡æ¯ã éç¨äº2023å¹´æ°çç`工信é¨ICP/IPå°å/ååä¿¡æ¯å¤æ¡ç®¡çç³»ç»`ã æ¼ç¤ºç½ç«ï¼https://icp.openeasm.org/query/qianxin.com 注æï¼æ¼ç¤ºç½ç«ä¸æä¾ä»»ä½SLAä¿è¯ã # ç¹å¾ â éè¿ `https://beian.miit.gov.cn/` æ¥è¯¢ä¿¡æ¯ï¼ç¡®ä¿ä¸ç®¡å±å®é ä¿¡æ¯ä¸è´ï¼ â æ¯æéè¿ååãå ¬å¸åãå¤æ¡å·æ¥è¯¢å¤æ¡ä¿¡æ¯ â æ¯æèªå¨å®ææå¨éªè¯ï¼åå¨æä½ç失败ç â æ¯æ循ç¯ç¿»é¡µæ¥è¯¢ï¼è·åæ¥è¯¢å°çææå¤æ¡ä¿¡æ¯ ð 使ç¨APIæä¾æå¡ï¼ä¾¿äºéæ ð æä¾Cacheä¸é»è®¤å¼å¯ï¼é¿å 对æºç«äº§çè¾å¤§åå # è¾å ¥ ```bash python3 ICP-Checker.py ``` 1. æ¥è¯¢å个ååçå¤æ¡ä¿¡æ¯ï¼ä» fldï¼ä¸å¯å«åååï¼ ```bash â ~ curl http://127.0.0.1:5001/query/qianxin.com | jq { "code": 200, "data": [ { "domain_approve_date": "2022-11-21 13:56:30", "domain_content_approved": "æ ", "domain_licence": "京ICPå¤16020626å·", "domain_name": "qianxin.com", "domain_owner": "å¥å®ä¿¡ç§æéå¢è¡ä»½æéå ¬å¸", "domain_status": "å¦", "domain_type": "ä¼ä¸", "website_licence": "京ICPå¤16020626å·-8" } ], "msg": "success" } ``` 2. æ¥è¯¢å个ä¼ä¸çå¤æ¡ä¿¡æ¯ ```bash â ~ curl http://127.0.0.1:5001/query/å¥å®ä¿¡ç§æéå¢è¡ä»½æéå ¬å¸ | jq { "code": 200, "data": [ { "domain_approve_date": "2022-11-21 13:56:30", "domain_content_approved": "æ ", "domain_licence": "京ICPå¤16020626å·", "domain_name": "tianfucup.com", "domain_owner": "å¥å®ä¿¡ç§æéå¢è¡ä»½æéå ¬å¸", "domain_status": "å¦", "domain_type": "ä¼ä¸", "website_licence": "京ICPå¤16020626å·-14" }, { "domain_approve_date": "2022-11-21 13:56:30", "domain_content_approved": "æ ", "domain_licence": "京ICPå¤16020626å·", "domain_name": "secmp.net", "domain_owner": "å¥å®ä¿¡ç§æéå¢è¡ä»½æéå ¬å¸", "domain_status": "å¦", "domain_type": "ä¼ä¸", "website_licence": "京ICPå¤16020626å·-2" }, ... ``` 3. æ¥è¯¢å¤æ¡å·ä¿¡æ¯ è¾å ¥å¤æ¡å·æ¥è¯¢ä¿¡æ¯ï¼å¦ï¼"粤B2-20090059-5"ã"æµB2-20080224-1"ã"京ICPè¯030173å·-1"çï¼å¦æä¸å¸¦ç»å°¾"-æ°å"ï¼åä¼å°è¯¥è¯åä¸ææååæ¥è¯¢åºæ¥ã ```bash â ~ curl http://127.0.0.1:5001/query/京ICPå¤16020626å· | jq { "code": 200, "data": [ { "domain_approve_date": "2022-11-21 13:56:30", "domain_content_approved": "æ ", "domain_licence": "京ICPå¤16020626å·", "domain_name": "tianfucup.com", "domain_owner": "å¥å®ä¿¡ç§æéå¢è¡ä»½æéå ¬å¸", "domain_status": "å¦", "domain_type": "ä¼ä¸", "website_licence": "京ICPå¤16020626å·-14" ... ``` # ç¼å说æ é»è®¤24å°æ¶ã å¦æå½ä¸ç¼åï¼å¨responseä¸ä¼æ`"cached": true`çæ è®°ä½ã å¨URLä¸æ·»å `no_cache`å¯å¼ºå¶å·æ°ç¼åã ```bash curl http://127.0.0.1:5001/query/qianxin.com?no_cache=1 | jq ``` # 说æ â 项ç®ä» ç¨äºå¦ä¹ 交æµï¼ä¸å¯ç¨äºåä¸åéæ³ç¨éã # ä¾èµ `pip install -r requirements.txt`