增加天眼查

This commit is contained in:
manchuwork
2025-12-12 03:59:12 +08:00
parent 12448b8897
commit c813f29f85
3 changed files with 218 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
height: 150px; height: 150px;
} }
.vjs-fluid { .vjs-fluidq
padding-top: 56.25% padding-top: 56.25%
} }
</style><meta charset="UTF-8"> <title>杭州鱼米企业管理合伙企业(有限合伙) - 鱼米企业 - 爱企查</title> <meta name="keywords" content="杭州鱼米企业管理合伙企业(有限合伙),鱼米企业,杭州鱼米企业管理合伙企业(有限合伙)地址,杭州鱼米企业管理合伙企业(有限合伙)怎么样,杭州鱼米企业管理合伙企业(有限合伙)电话"> <meta name="description" itemprop="description" content="爱企查为您提供杭州鱼米企业管理合伙企业(有限合伙)的企业信息查询服务,查询杭州鱼米企业管理合伙企业(有限合伙)工商注册信息、电话邮箱、公司地址、经营风险、控股持股、发展动态、财务状况、股东法人高管、商标专利、品牌项目、竞品信息、融资历史、变更记录、法律诉讼、招投标、招聘、新闻资讯等企业信用信息。想全面了解杭州鱼米企业管理合伙企业(有限合伙)怎么样和发展潜力,就上爱企查。"> <meta http-equiv="X-UA-Compatible" content="IE=edge"><meta http-equiv="content-language" content="zh-CN"> <meta property="og:title" content="杭州鱼米企业管理合伙企业(有限合伙) - 鱼米企业 - 爱企查"> <meta property="og:description" content="爱企查为您提供杭州鱼米企业管理合伙企业(有限合伙)的企业信息查询服务,查询杭州鱼米企业管理合伙企业(有限合伙)工商注册信息、电话邮箱、公司地址、经营风险、控股持股、发展动态、财务状况、股东法人高管、商标专利、品牌项目、竞品信息、融资历史、变更记录、法律诉讼、招投标、招聘、新闻资讯等企业信用信息。想全面了解杭州鱼米企业管理合伙企业(有限合伙)怎么样和发展潜力,就上爱企查。"> <meta property="og:site_name" content="爱企查"> <meta property="og:type" content="website"> <meta name="mobile-agent" content="format=html5; url=https://aiqicha.baidu.com/m/detail?pid=92010217280896"><meta itemprop="name" content="杭州鱼米企业管理合伙企业(有限合伙) - 爱企查"><meta itemprop="image" content="https://zhengxin-pub.cdn.bcebos.com/logopic/fang_logo_min.jpg"><meta name="aqc-seo" content="false"> <meta name="google-site-verification" content="5cHddheTrPUV43Sax7vL0alqZq2vDULTVjPf0VnStV4"><link rel="dns-prefetch" href="//ts.bdimg.com"><link rel="dns-prefetch" href="//himg.bdimg.com"><link rel="shortcut icon" href="//xinpub.cdn.bcebos.com/static/favicon.ico" type="image/x-icon"><script src="https://dlswbr.baidu.com/heicha/mw/abclite-2061-s.js?v=0.5416844604710365" async="async" defer="defer"></script><script src="https://hm.baidu.com/hm.js?ad52b306e1ae4557f5d3534cce8f8bbf" async="async" defer="defer"></script><script type="text/javascript" src="https://dlswbr.baidu.com/heicha/mm/2061/acs-2061.js?_=1765476804"></script><script type="text/javascript" src="//passport.baidu.com/passApi/js/uni_login_wrapper.js"></script> <link href="//xinpub.cdn.bcebos.com/aiqicha/static/1765454695/css/vendors.600f5cfebef.css" rel="stylesheet"><link href="//xinpub.cdn.bcebos.com/aiqicha/static/1765454695/css/detailJudicialInfo.be34a58db76.css" rel="stylesheet"><script src="//xinpub.cdn.bcebos.com/aiqicha/static/1765454695/js/1.cf03b37b3d8.js"></script><script src="//xinpub.cdn.bcebos.com/aiqicha/static/1765454695/js/0.435ea01d37c.js"></script> <script type="application/ld+json">{ </style><meta charset="UTF-8"> <title>杭州鱼米企业管理合伙企业(有限合伙) - 鱼米企业 - 爱企查</title> <meta name="keywords" content="杭州鱼米企业管理合伙企业(有限合伙),鱼米企业,杭州鱼米企业管理合伙企业(有限合伙)地址,杭州鱼米企业管理合伙企业(有限合伙)怎么样,杭州鱼米企业管理合伙企业(有限合伙)电话"> <meta name="description" itemprop="description" content="爱企查为您提供杭州鱼米企业管理合伙企业(有限合伙)的企业信息查询服务,查询杭州鱼米企业管理合伙企业(有限合伙)工商注册信息、电话邮箱、公司地址、经营风险、控股持股、发展动态、财务状况、股东法人高管、商标专利、品牌项目、竞品信息、融资历史、变更记录、法律诉讼、招投标、招聘、新闻资讯等企业信用信息。想全面了解杭州鱼米企业管理合伙企业(有限合伙)怎么样和发展潜力,就上爱企查。"> <meta http-equiv="X-UA-Compatible" content="IE=edge"><meta http-equiv="content-language" content="zh-CN"> <meta property="og:title" content="杭州鱼米企业管理合伙企业(有限合伙) - 鱼米企业 - 爱企查"> <meta property="og:description" content="爱企查为您提供杭州鱼米企业管理合伙企业(有限合伙)的企业信息查询服务,查询杭州鱼米企业管理合伙企业(有限合伙)工商注册信息、电话邮箱、公司地址、经营风险、控股持股、发展动态、财务状况、股东法人高管、商标专利、品牌项目、竞品信息、融资历史、变更记录、法律诉讼、招投标、招聘、新闻资讯等企业信用信息。想全面了解杭州鱼米企业管理合伙企业(有限合伙)怎么样和发展潜力,就上爱企查。"> <meta property="og:site_name" content="爱企查"> <meta property="og:type" content="website"> <meta name="mobile-agent" content="format=html5; url=https://aiqicha.baidu.com/m/detail?pid=92010217280896"><meta itemprop="name" content="杭州鱼米企业管理合伙企业(有限合伙) - 爱企查"><meta itemprop="image" content="https://zhengxin-pub.cdn.bcebos.com/logopic/fang_logo_min.jpg"><meta name="aqc-seo" content="false"> <meta name="google-site-verification" content="5cHddheTrPUV43Sax7vL0alqZq2vDULTVjPf0VnStV4"><link rel="dns-prefetch" href="//ts.bdimg.com"><link rel="dns-prefetch" href="//himg.bdimg.com"><link rel="shortcut icon" href="//xinpub.cdn.bcebos.com/static/favicon.ico" type="image/x-icon"><script src="https://dlswbr.baidu.com/heicha/mw/abclite-2061-s.js?v=0.5416844604710365" async="async" defer="defer"></script><script src="https://hm.baidu.com/hm.js?ad52b306e1ae4557f5d3534cce8f8bbf" async="async" defer="defer"></script><script type="text/javascript" src="https://dlswbr.baidu.com/heicha/mm/2061/acs-2061.js?_=1765476804"></script><script type="text/javascript" src="//passport.baidu.com/passApi/js/uni_login_wrapper.js"></script> <link href="//xinpub.cdn.bcebos.com/aiqicha/static/1765454695/css/vendors.600f5cfebef.css" rel="stylesheet"><link href="//xinpub.cdn.bcebos.com/aiqicha/static/1765454695/css/detailJudicialInfo.be34a58db76.css" rel="stylesheet"><script src="//xinpub.cdn.bcebos.com/aiqicha/static/1765454695/js/1.cf03b37b3d8.js"></script><script src="//xinpub.cdn.bcebos.com/aiqicha/static/1765454695/js/0.435ea01d37c.js"></script> <script type="application/ld+json">{

File diff suppressed because one or more lines are too long

View File

@@ -6,6 +6,7 @@
// @author You // @author You
// @match https://www.qcc.com/firm/* // @match https://www.qcc.com/firm/*
// @match https://aiqicha.baidu.com/company_detail_* // @match https://aiqicha.baidu.com/company_detail_*
// @match https://www.tianyancha.com/company/*
// @match https://shiming.gsxt.gov.cn/* // @match https://shiming.gsxt.gov.cn/*
// @grant none // @grant none
// ==/UserScript== // ==/UserScript==
@@ -863,7 +864,209 @@ class NationalCreditParser {
} }
} }
// end国家企业信用信息公示系统解析类 // end国家企业信用信息公示系统解析类
// 天眼查解析类
// 天眼查解析类
class TianYanChaParser {
constructor() {
this.container = null;
}
// 初始化容器
initContainer() {
// 使用正确的容器选择器
this.container = document.querySelector(".index_tableBox__ZadJW");
if (!this.container) {
alert("未找到企业信息容器");
return false;
}
return true;
}
// 获取法定代表人
getLegalRepresentative() {
const legalElement = document.querySelector(".index_legal-representative__Kfdqv a.link-click");
if (legalElement) {
return ToolUtils.cleanText(legalElement.textContent);
}
return null;
}
// 从表格中获取值
getValueByLabel(label,includeOnlyTextNode=false) {
const rows = Array.from(document.querySelectorAll("tr"));
for (const row of rows) {
const cells = Array.from(row.children);
for (let i = 0; i < cells.length; i++) {
const cellText = ToolUtils.cleanText(cells[i].textContent);
if (cellText.includes(label)) {
// 查找下一个单元格作为值
const nextCell = cells[i + 1];
if (nextCell) {
if(includeOnlyTextNode){
// Extract only direct text content, excluding nested divs
let directText = '';
for (const node of nextCell.childNodes) {
// directText+='node text:'+node.textContent+', type:'+ node.nodeType+'\n';
// console.log('node:',node,' node type:',node.nodeType," node.textContent:",node.textContent);
// Only include text nodes and exclude elements with classes
if (node.nodeType === Node.TEXT_NODE) {
directText += node.textContent;
}
}
return ToolUtils.cleanText(directText);
}else{
// 处理包含复制按钮的特殊结构
const copyBox = nextCell.querySelector(".index_copy-box__7b6Aq");
if (copyBox) {
const copyText = copyBox.querySelector(".index_copy-text__ri7W6");
if (copyText) {
return ToolUtils.cleanText(copyText.textContent);
}
}
return ToolUtils.cleanText(nextCell.textContent);
}
}
}
}
}
return null;
}
// 获取统一社会信用代码
getUnifiedSocialCreditCode() {
return this.getValueByLabel("统一社会信用代码");
}
// 获取企业名称
getCompanyName() {
const nameElement = document.querySelector("h1.index_company-name__LqKlo .index_name__dz4jY");
if (nameElement) {
return ToolUtils.cleanText(nameElement.textContent);
}
return this.getValueByLabel("企业名称");
}
// 获取注册资本
getRegisteredCapital() {
return this.getValueByLabel("注册资本");
}
// 获取成立日期
getEstablishmentDate() {
return this.getValueByLabel("成立日期");
}
// 获取经营状态
getBusinessStatus() {
return this.getValueByLabel("登记状态") || this.getValueByLabel("经营状态");
}
// 获取工商注册号
getBusinessRegistrationNo() {
return this.getValueByLabel("工商注册号");
}
// 获取组织机构代码
getOrganizationCode() {
return this.getValueByLabel("组织机构代码");
}
// 获取纳税人识别号
getTaxpayerId() {
return this.getValueByLabel("纳税人识别号");
}
// 获取核准日期
getApprovalDate() {
return this.getValueByLabel("核准日期");
}
// 获取登记机关
getRegistrationAuthority() {
return this.getValueByLabel("登记机关");
}
// 获取注册地址
getRegisteredAddress() {
return this.getValueByLabel("注册地址");
}
// 获取经营范围
getBusinessScope() {
return this.getValueByLabel("经营范围");
}
// 获取实缴资本
getActualCapital() {
return this.getValueByLabel("实缴资本");
}
// 获取企业类型
getEnterpriseType() {
return this.getValueByLabel("企业类型");
}
// 获取参保人数
getInsuranceNumber() {
const result = this.getValueByLabel("参保人数",true);
if (result) {
// Extract only the first number from the beginning of the string
// This handles cases where there are additional elements like "2024年报" after the number
const match = result.match(/^(\d+)/);
if (match) {
return match[1] + "人";
}
// Fallback to the original regex pattern
const fallbackMatch = result.match(/(\d+)人/);
return fallbackMatch ? `${fallbackMatch[1]}` : null;
}
return null;
}
// 获取联系电话
getPhoneNumber() {
// 查找电话信息
const phoneElements = document.querySelectorAll(".index_detail-info-item__oAOqL");
for (const element of phoneElements) {
const labelText = ToolUtils.cleanText(element.textContent);
if (labelText.includes("电话")) {
const phoneSpan = element.querySelector(".link-hover-click");
if (phoneSpan) {
return ToolUtils.cleanText(phoneSpan.textContent);
}
}
}
return null;
}
// 解析公司信息主方法
parseCompanyInfo() {
if (!this.initContainer()) return;
const companyData = {
企业名称: this.getCompanyName(),
统一社会信用代码: this.getUnifiedSocialCreditCode(),
法定代表人: this.getLegalRepresentative(),
电话: this.getPhoneNumber(),
经营状态: this.getBusinessStatus(),
成立日期: this.getEstablishmentDate(),
注册资本: this.getRegisteredCapital(),
实缴资本: this.getActualCapital(),
企业类型: this.getEnterpriseType(),
工商注册号: this.getBusinessRegistrationNo(),
组织机构代码: this.getOrganizationCode(),
纳税人识别号: this.getTaxpayerId(),
核准日期: this.getApprovalDate(),
登记机关: this.getRegistrationAuthority(),
注册地址: this.getRegisteredAddress(),
经营范围: this.getBusinessScope(),
参保人数: this.getInsuranceNumber(),
};
ToolUtils.showResult(companyData);
}
}
// end 天眼查解析类
// 创建按钮容器 // 创建按钮容器
function createButtonContainer() { function createButtonContainer() {
@@ -997,7 +1200,9 @@ class NationalCreditParser {
parser = new AiQiChaParser(); parser = new AiQiChaParser();
} else if (window.location.host.includes("qcc.com")) { } else if (window.location.host.includes("qcc.com")) {
parser = new QCCParser(); parser = new QCCParser();
} else if (window.location.host.includes("gsxt.gov.cn")) { } else if (window.location.host.includes("tianyancha.com")) {
parser = new TianYanChaParser();
} else if (window.location.host.includes("gsxt.gov.cn")) {
parser = new NationalCreditParser(); parser = new NationalCreditParser();
} else { } else {
alert("不支持的网站"); alert("不支持的网站");