1. 安装
Conda安装:
conda config --add channels conda-forge
conda config --add channels microsoft
conda install playwright
playwright install
Pip安装:
# 安装playwright
pip install playwright
# 安装browser驱动
playwright install
2. 利用playwright 将page保存为pdf格式的用法
playwright pdf file://"file_path" filename.pdf
简单快捷有效-.-