Closed tarihub closed 2 years ago
根据 riskiq api文档,api调用链接已发生改变,调用原 api 链接会出现认证失败的情况 https://api.riskiq.net/api/enrichment/#!/default/get_pt_v2_enrichment_subdomains 更改后认证正常,收集子域正常
且因 config/setting.py 的 request_default_headers 默认接受 xml数据接口,导致 modules/intelligence/riskiq_api.py data = resp.json() 抛出异常,因此 http 头要增加 self.header.update({'Accept': 'application/json'})
config/setting.py
request_default_headers
modules/intelligence/riskiq_api.py
data = resp.json()
self.header.update({'Accept': 'application/json'})
根据 bing api文档,api调用链接已发生改变,调用原 api 链接会出现认证失败的情况 https://docs.microsoft.com/en-us/bing/search-apis/bing-custom-search/reference/endpoints
更改后认证正常,收集子域正常
非常感谢!!!
riskiq
根据 riskiq api文档,api调用链接已发生改变,调用原 api 链接会出现认证失败的情况 https://api.riskiq.net/api/enrichment/#!/default/get_pt_v2_enrichment_subdomains 更改后认证正常,收集子域正常
且因
config/setting.py
的request_default_headers
默认接受 xml数据接口,导致modules/intelligence/riskiq_api.py
data = resp.json()
抛出异常,因此 http 头要增加self.header.update({'Accept': 'application/json'})
bing
根据 bing api文档,api调用链接已发生改变,调用原 api 链接会出现认证失败的情况 https://docs.microsoft.com/en-us/bing/search-apis/bing-custom-search/reference/endpoints
更改后认证正常,收集子域正常