# python_feishu脚本 **Repository Path**: Saborking/python_feishu1 ## Basic Information - **Project Name**: python_feishu脚本 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-23 - **Last Updated**: 2025-04-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 1. exe 运行示例(无需配置环境) 在命令行中,你可以使用以下命令运行生成的可执行文件(需要先切换到文件所在目录):--url 后请输入真实的问卷链接 ```bash ./feishu_auto_fill.exe --url "https://wenjuan.feishu.cn/m/cfm?t=sqRtAINQBXWi-a1qp" --patent_name "你的专利名" --teacher_name "你的姓名" --Teacher_ID "你的教工号" --is_shcool_count "是/否" ``` 或者直接运行 python 文件 ```bash python feishu_auto_fill.py --url "https://wenjuan.feishu.cn/m/cfm?t=sqRtAINQBXWi-a1qp" --patent_name "你的专利名" --teacher_name "你的姓名" --Teacher_ID "你的教工号" --is_shcool_count "是/否" ``` ### 首次运行提示 首次运行时,可能会出现以下提示: ``` 请访问 https://googlechromelabs.github.io/chrome-for-testing/ 下载与您的谷歌浏览器版本 匹配的 ChromeDriver。 下载解压完成后,请将 ChromeDriver.exe 放在 文件夹下。 ``` 请按照提示操作,以确保程序正常运行。 ## 2. .py 文件运行环境 本项目依赖以下 Python 库: - `platform` - `subprocess` - `winreg` - `os` - `selenium` - `webdriver_manager` - `argparse` 你可以使用以下命令安装这些依赖: ```bash pip install selenium webdriver_manager argparse ``` ### 代码修改与打包 如果你对`feishu_auto_fill.py`文件进行了修改,你可以使用`PyInstaller`将其重新打包成可执行文件。首先,确保你已经安装了`PyInstaller`: ```bash pip install pyinstaller ``` 然后,在项目根目录下运行以下命令进行打包: ```bash pyinstaller --onefile feishu_auto_fill.py ``` 打包完成后,可执行文件将位于`dist`目录下。