Coder Social home page Coder Social logo

enscan's Introduction

ENScan 🛠

本项目已停止维护,建议使用ENScanGo https://github.com/wgpsec/ENScan_GO

背景

本项目为 狼组信息化平台 功能项目,该项目开源

程序主要对百度爱企查 API和接口进行封装可获取

  • 企业基本信息(法人、电话、公司地址等等)
    • 企业ICP备案号以及网站
    • 企业APP信息
    • 企业微信公众号信息
    • 企业微博信息
    • 子公司的基本信息
    • 供应商信息
    • .....
  • 该企业投资大于51%的企业基本信息(可设定)
  • 自动导出

有更多需求可以联系@Keac 师傅提

快速使用

使用演示视频:https://www.bilibili.com/video/BV1Nv411H7CN/

  1. 安装依赖 (部分依赖有点问题,需要手动安装下)

    pip install -r requirements.txt

  2. 命令使用

    python ENScan.py

    输入关键词即可查询

  3. 批量查询

    python ENScan.py -k keyword.txt keyword.txt 为你自己制定的企业关键词,每行一个

若使用出现 “【风险校验】需要更新Cookie” 信息需要使用浏览器打开https://aiqicha.baidu.com/ 滑动验证码校验后复制所有COOKIE信息替换脚本中的 self.cookie (若不知道替换哪些请看视频教程演示)

self.invest_is_rd = False 是否选出不清楚投资比例的,比如未公示投资多少的,开启会增加发现几率,但可能会不对应

请求错误会自动尝试重连20次 ,若替换Cookie无果可以尝试开启代理,速度会偏慢

image-20210526234131461

image-20210526234225797

image-20210526234313036

image-20210526234349263

API部署

本项目需要运行在Linux/MAC环境下,不支持Windows,使用了任务队列RQ

需要安装配置Redis

python api.py (启动 web API)

python scan_worker.py (启动扫描端)

enscan's People

Contributors

dependabot[bot] avatar keac avatar myxxx23 avatar qhaoduoyu avatar thenorth-sec 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

enscan's Issues

No matching distribution found for numpy==1.20.3& ModuleNotFoundError: No module named 'tqdm'

1. 安装requestments遇到问题,已解决建议调整,requestments文档内容

ERROR: Could not find a version that satisfies the requirement numpy==1.20.3 (from versions: none)
ERROR: No matching distribution found for numpy==1.20.3


不指定版本,可解决
pip3 install numpy

2. ModuleNotFoundError: No module named 'tqdm'

from tqdm import tqdm

ModuleNotFoundError: No module named 'tqdm'

requestments中缺少tqdm模块


自己下载模块即可
pip3 install tqdm

功能建议

大佬,能不能把微博、公众号、软件著作这部分的内容也一并导出呢

报错

'latin-1' codec can't encode character '\u2026' in position 512: ordinal not in range(256)

功能建议: 获取到公司的控股公司信息后的一些信息查询

架构:上游控股公司<--- 目标公司 --->下游控股公司
控股比例:百分百控股、xxx控股
行为:
1、在获取到目标公司的上下游控股公司信息后根据控股比例要求提取相关公司域名(默认百分百控股最有价值)
2、根据域名反查备案
3、再根据备案进行反查域名,进而获取到整个链上所有相关域名

这个功能若实现,何愁一个个手工检索控股公司域名

可惜目前go菜,暂时没法提供代码了

pandas._libs.lib报错

File "E:\anaconda\lib\site-packages\pandas\core\indexes\base.py", line 5896, in ensure_index
converted, all_arrays = lib.clean_index_list(index_like)

AttributeError: module 'pandas._libs.lib' has no attribute 'clean_index_list'

爱企查又改版了,不能用了

爱企查又改版了

Traceback (most recent call last):
  File "ENScan.py", line 707, in <module>
    Scan.main()
  File "ENScan.py", line 651, in main
    res = self.check_name(search_keyword)
  File "ENScan.py", line 535, in check_name
    item = self.get_cm_if(name)
  File "ENScan.py", line 471, in get_cm_if
    item = self.parse_index(content, False)
  File "ENScan.py", line 243, in parse_index
    j = json.loads(mystr)
  File "/usr/local/Cellar/[email protected]/3.7.9_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/local/Cellar/[email protected]/3.7.9_2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 340, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 250308 (char 250307)
 10%|████                                    | 10/100 [00:02<00:19,  4.72it/s]

环境运行不起来

2023-03-24 18:37:25,122 - WARNING - 【请求错误】 ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Traceback (most recent call last):
File "ENScan.py", line 790, in
Scan.main()
File "ENScan.py", line 746, in main
self.get_company_info(self.pid)
File "ENScan.py", line 521, in get_company_info
self.c_data['info'] = self.get_company_c(pid, True)
File "ENScan.py", line 414, in get_company_c
icp_info = self.get_info_list(pid, "detail/icpinfoAjax")
File "ENScan.py", line 374, in get_info_list
res_data = json.loads(content)
File "G:\python38\lib\json_init_.py", line 341, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType

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.