提交 eff87695 作者: 薛凌堃

企查查基本信息采集维护

上级 9b2d7df4
...@@ -389,9 +389,9 @@ def ifbeforename(company_url): ...@@ -389,9 +389,9 @@ def ifbeforename(company_url):
def spiderinfo(company_url, securitiesCode, securitiesShortName, listingDate, category, exchange, listType, ynDomestic, countryName, file_name): def spiderinfo(company_url, securitiesCode, securitiesShortName, listingDate, category, exchange, listType, ynDomestic, countryName, file_name):
qccid = company_url.split('firm/')[1].split('.html')[0] qccid = company_url.split('firm/')[1].split('.html')[0]
# 将采集到的企查查id更新 # 将采集到的企查查id更新
updateSql = f"update EnterpriseInfo set QCCID = '{qccid}' where SocialCode = '{social_code}'" # updateSql = f"update EnterpriseInfo set QCCID = '{qccid}' where SocialCode = '{social_code}'"
cursor_.execute(updateSql) # cursor_.execute(updateSql)
cnx_.commit() # cnx_.commit()
# ip = baseCore.get_proxy() # ip = baseCore.get_proxy()
# req_ = requests.get(headers=headers, url=company_url, proxies=ip) # req_ = requests.get(headers=headers, url=company_url, proxies=ip)
req_ = requests.get(headers=headers, url=company_url) req_ = requests.get(headers=headers, url=company_url)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论