需要打开编辑器的HTML代码模式粘贴进去~~~
QQ截图20240111092351.jpg (12.86 KB, 下载次数: 0)
下载附件
2024-1-11 09:24 上传
QQ截图20240111092034.jpg (15.35 KB, 下载次数: 0)
下载附件
2024-1-11 09:20 上传
程序下载链接: https://pan.baidu.com/s/1yUHr2pAlGFHV7kRRPFf9PA?pwd=52pj 提取码: 52pj 复制这段内容后打开百度网盘手机App,操作更方便哦
[Asm] 纯文本查看 复制代码import re
import tkinter
from tkinter import messagebox
import pyperclip
import requests
def tiqu():
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.289 Safari/537.36',
}
id = str_TextBox1.get()
response = requests.get('https://www.135editor.com/editor_styles/{}.html'.format(id), headers=headers)
com = re.compile('.*?',re.S)
shou = com.findall(response.text)[0]
if shou:
pyperclip.copy(shou)
messagebox.showinfo('提示', '以复制到你的粘贴板,直接粘贴即可~')
else:
messagebox.showinfo('提示', '模板ID错误~无法获取数据~~')
win = tkinter.Tk() # 设定窗体变量
win.geometry('310x88+50+50') # 格式('宽x高+x+y')其中x、y为位置
win.title('135收费模板提取助手')
ihc1 = tkinter.Button(win, text='提取模板', font=('宋体', '9'),command=tiqu)
ihc1.place(x=202, y=7, width=88, height=29)
ihLabel1 = tkinter.Label(win, text='输入模板ID', font=('宋体', '9'))
ihLabel1.place(x=7, y=14, height=22)
str_TextBox1 = tkinter.StringVar() # 绑定变量
ihTextBox1 = tkinter.Entry(win, textvariable=str_TextBox1, font=('宋体', '9'))
ihTextBox1.place(x=79, y=7, width=101, height=29)
str_TextBox1.set('137387')
win.mainloop()