埃森哲数字化转型指数:3个数据看懂中国企业离未来型还有多远(附报告下载)
import time,base64,json,os os.chdir(r"C:\Users\xiaoz\WorkBuddy\2026-07-24-22-07-26") with open("articleL.txt","r",encoding="utf-8") as f: article = f.read() lines = article.strip().split('\n') content_lines = [] start = False for l in lines: if l.startswith('- 正文:'): start = True; continue if start and l.strip(): content_lines.append(l.strip()) html_parts = [] for line in content_lines: s = line.strip() if s.startswith('**') and s.endswith('**'): html_parts.append('
' + s.strip('* ').strip() + '
') elif s == '**收尾**': html_parts.append('
收尾
') elif s: html_parts.append('
' + s + '
') imgs = json.load(open("imgsL.txt","r")) for img in imgs: html_parts.append('
') b64 = base64.b64encode('\n'.join(html_parts).encode()).decode() sessid = open("sessidL.txt","r").read().strip() for d in ['.yydm.cn', 'www.yydm.cn', '.www.yydm.cn']: cdp("Network.deleteCookies", name="PHPSESSID", domain=d) cdp("Network.setCookie", name="PHPSESSID", value=sessid, domain=".yydm.cn", path="/", httpOnly=True, secure=True, sameSite="Lax") goto_url("https://www.yydm.cn/admin/index/backend.html") wait_for_load() time.sleep(3) js("document.querySelector('iframe.J_iframe').src='https://www.yydm.cn/article/article/init.html'") time.sleep(3) js("(function(){var d=document.querySelector('iframe.J_iframe').contentWindow.document;var b=d.querySelectorAll('button');for(var i=0;i
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

