Documentation
¶
Index ¶
- Variables
- func Banner()
- func DataToMap(info []gjson.Result, en *EnsGo, em *EnsGo, ext string) (res []map[string]string)
- func Flag(Info *ENOptions)
- func InfoToMap(infos map[string][]gjson.Result, enMap map[string]*EnsGo, extraInfo string) (res map[string][]map[string]string)
- func NewClient(headers map[string]string, op *ENOptions) *req.Request
- func OriginalToMap(info gjson.Result, em *EnsGo) (res map[string]string)
- func OriginalToMapList(infos []gjson.Result, em *EnsGo) (res []map[string]string)
- func OutFileByEnInfo(data map[string][]map[string]string, name string, types string, dir string) (err error)
- func OutStrByEnInfo(data map[string][]map[string]string, types string) (str string)
- type DPS
- type ENConfig
- type ENOptions
- type ENSMap
- type ENSearch
- type ENsD
- type EnInfos
- type EnsGo
- type InfoPage
Constants ¶
This section is empty.
Variables ¶
View Source
var AbnormalStatus = []string{"注销", "吊销", "停业", "清算", "歇业", "关闭", "撤销", "迁出", "经营异常", "严重违法失信"}
View Source
var CanSearchAllInfos = []string{"enterprise_info", "icp", "weibo", "wechat", "app", "job", "wx_app", "copyright", "supplier", "invest", "branch", "holds", "partner"}
View Source
var DeepSearch = []string{"invest", "branch", "holds", "supplier"}
View Source
var DefaultAllInfos = []string{"icp", "weibo", "wechat", "app", "weibo", "job", "wx_app", "copyright"}
DefaultAllInfos 默认收集信息列表
View Source
var DefaultInfos = []string{"icp", "weibo", "wechat", "app", "wx_app"}
View Source
var ENSApps = []string{"miit"}
View Source
var ENSMapLN = map[string]*EnsGo{ "enterprise_info": { Name: "企业信息", Field: []string{"name", "legal_person", "status", "phone", "email", "registered_capital", "incorporation_date", "address", "scope", "reg_code", "pid"}, KeyWord: []string{"企业名称", "法人代表", "经营状态", "电话", "邮箱", "注册资本", "成立日期", "注册地址", "经营范围", "统一社会信用代码", "PID"}, }, "icp": { Name: "ICP备案", Field: []string{"website_name", "website", "domain", "icp", "company_name"}, KeyWord: []string{"网站名称", "网址", "域名", "网站备案/许可证号", "公司名称"}, }, "wx_app": { Name: "微信小程序", Field: []string{"name", "category", "logo", "qrcode", "read_num"}, KeyWord: []string{"名称", "分类", "头像", "二维码", "阅读量"}, }, "wechat": { Name: "微信公众号", Field: []string{"name", "wechat_id", "description", "qrcode", "avatar"}, KeyWord: []string{"名称", "ID", "简介", "二维码", "头像"}, }, "weibo": { Name: "微博", Field: []string{"name", "profile_url", "description", "avatar"}, KeyWord: []string{"微博昵称", "链接", "简介", "头像"}, }, "supplier": { Name: "供应商", Field: []string{"name", "scale", "amount", "report_time", "data_source", "relation", "pid"}, KeyWord: []string{"名称", "金额占比", "金额", "报告期/公开时间", "数据来源", "关联关系", "PID"}, }, "job": { Name: "招聘", Field: []string{"name", "education", "location", "publish_time", "salary"}, KeyWord: []string{"招聘职位", "学历", "办公地点", "发布日期", "薪资"}, }, "invest": { Name: "投资", Field: []string{"name", "legal_person", "status", "scale", "pid"}, KeyWord: []string{"企业名称", "法人", "状态", "投资比例", "PID"}, }, "branch": { Name: "分支机构", Field: []string{"name", "legal_person", "status", "pid"}, KeyWord: []string{"企业名称", "法人", "状态", "PID"}, }, "holds": { Name: "控股企业", Field: []string{"name", "legal_person", "status", "scale", "level", "pid"}, KeyWord: []string{"企业名称", "法人", "状态", "投资比例", "持股层级", "PID"}, }, "app": { Name: "APP", Field: []string{"name", "category", "version", "update_at", "description", "logo", "bundle_id", "link", "market"}, KeyWord: []string{"名称", "分类", "当前版本", "更新时间", "简介", "logo", "Bundle ID", "链接", "market"}, }, "copyright": { Name: "软件著作权", Field: []string{"name", "short_name", "category", "reg_num", "pub_type"}, KeyWord: []string{"软件全称", "软件简称", "分类", "登记号", "权利取得方式"}, }, "partner": { Name: "股东信息", Field: []string{"name", "scale", "reg_cap", "pid"}, KeyWord: []string{"股东名称", "持股比例", "认缴出资金额", "PID"}, }, }
ENSMapLN 最终统一导出格式
View Source
var ENSTypes = []string{"aqc", "tyc", "kc", "tycapi", "rb"}
View Source
var ScanTypeKeys = map[string]string{
"aqc": "爱企查",
"qcc": "企查查",
"tyc": "天眼查",
"tycapi": "天眼查",
"xlb": "小蓝本",
"kc": "快查",
"rb": "风鸟",
"all": "全部查询",
"aldzs": "阿拉丁",
"coolapk": "酷安市场",
"qimai": "七麦数据",
"chinaz": "站长之家",
"miit": "miitICP",
}
Functions ¶
func InfoToMap ¶
func InfoToMap(infos map[string][]gjson.Result, enMap map[string]*EnsGo, extraInfo string) (res map[string][]map[string]string)
InfoToMap 将输出的json转为统一map格式
func OriginalToMapList ¶
func OutFileByEnInfo ¶
Types ¶
type DPS ¶
type DPS struct {
Name string `json:"name"` // 企业名称
Pid string `json:"pid"` // 企业ID
Ref string `json:"ref"` // 关联原因
Deep int `json:"deep"` // 深度
SK string `json:"type"` // 搜索类型
SearchList []string `json:"search_list"` // 深度搜索列表
}
DPS ENScan深度搜索包
type ENConfig ¶
type ENConfig struct {
Version float64 `yaml:"version"`
UserAgent string `yaml:"user_agent"` // 自定义 User-Agent
Api struct {
Api string `yaml:"api"`
Mcp string `yaml:"mcp"`
}
Cookies struct {
Aldzs string `yaml:"aldzs"`
Xlb string `yaml:"xlb"`
Aiqicha string `yaml:"aiqicha"`
Qidian string `yaml:"qidian"`
KuaiCha string `yaml:"kuaicha"`
Tianyancha string `yaml:"tianyancha"`
Tycid string `yaml:"tycid"`
TycApiToken string `yaml:"tyc_api_token"`
RiskBird string `yaml:"risk_bird"`
AuthToken string `yaml:"auth_token"`
Qcc string `yaml:"qcc"`
QccTid string `yaml:"qcctid"`
QiMai string `yaml:"qimai"`
ChinaZ string `yaml:"chinaz"`
}
App struct {
MiitApi string `yaml:"miit_api"`
}
}
ENConfig YML配置文件,更改时注意变更 cfgYV 版本
type ENOptions ¶
type ENOptions struct {
KeyWord string // Keyword of Search
CompanyID string // Company ID
GroupID string // Company ID
InputFile string // Scan Input File
Output string
ScanType string
Proxy string
ISKeyPid bool
IsGroup bool
IsGetBranch bool
IsSearchBranch bool
InvestNum float64
DelayTime int
DelayMaxTime int64
TimeOut int
GetFlags string
Version bool
IsHold bool
IsSupplier bool
IsShow bool
GetField []string
GetType []string
IsDebug bool
IsJsonOutput bool
Deep int
IsMergeOut bool //聚合
IsNoMerge bool //聚合
OutPutType string // 导出文件类型
IsApiMode bool
IsMCPServer bool
IsPlugins bool // 是否作为后置插件查询
IsFast bool // 是否快速查询
ENConfig *ENConfig
BranchFilter string
NameFilterRegexp *regexp.Regexp
}
func (*ENOptions) GetDelayRTime ¶
func (*ENOptions) GetENConfig ¶
type ENSearch ¶
type ENSearch struct {
KeyWord string // Keyword of Search
GetField []string
GetType []string
IsGetBranch bool
NameFilterRegexp *regexp.Regexp
InvestNum float64
IsHold bool
IsSupplier bool
Deep int
}
ENSearch 搜索必要的参数 暂时没想好如何使用,尤其是在多进程情况下
type ENsD ¶
type ENsD struct {
KeyWord string // Keyword of Search
Name string // 企业
Pid string // PID
Op *ENOptions
}
ENsD 通用返回内容格式
type EnInfos ¶
type EnInfos struct {
Search string
Name string
Pid string
LegalPerson string
OpenStatus string
Email string
Telephone string
SType string
RegCode string
BranchNum int64
InvestNum int64
InTime time.Time
PidS map[string]string
Infos map[string][]gjson.Result
EnInfos map[string][]map[string]interface{}
EnInfo []map[string]interface{}
}
type EnsGo ¶
type EnsGo struct {
Name string // 接口名字
Api string // API 地址
Field []string // 获取的字段名称 看JSON
KeyWord []string // 关键词
Total int64 // 统计梳理 AQC
Available int64 // 统计梳理 AQC
GNum string // 获取数量的json关键词 getDetail->CountInfo QCC
TypeInfo []string // 集团获取参数 QCC
Fids string // 接口获取参数 QCC
SData map[string]string // 接口请求POST参数 QCC
GsData string // get请求需要加的特殊参数 TYC
Rf string // 返回数据关键词 TYC
DataModuleId int // 企点获取数据ID点
AppParams [2]string // 插件需要获取的参数
Price float32 // 价格
Ex []string // 扩展字段
}
EnsGo EnScan 接口请求通用格式接口
Click to show internal directories.
Click to hide internal directories.