准备做个查验记录保存,方便数据归集。拿python练手。
1 安装控件
pip install pywebview
pip install cefpython3
 
2 功能实现
2.1 main.py
import webview
webview.create_window('国家税务总局全国增值税发票查验平台-客户端', 'https://inv-veri.chinatax.gov.cn/')
webview.start(gui='cef')
 
运行起来,白板,看不到效果,换成其他连接,就可以,经过分析(直接用谷歌浏览器打开),原来是证书问题,如图提示:
 
 修改cef.py代码,203行,添加忽悠证书错误:ignore_certificate_errors
default_settings = {
            'multi_threaded_message_loop': True,
            'ignore_certificate_errors': True,
            'context_menu': {
                'enabled': _debug['mode']
            }
        }
 
运行
 







