【定制】饿了么风神网站数据处理 Selenium+xpath+websocket+HTML+CSS+JavaScript https://Faeolus.ele.me
Go to file
2024-07-22 21:45:14 +08:00
__pycache__ 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
.idea 完成 提取页面数据 | @xrilang 2024-07-22 16:47:35 +08:00
build 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
chromedriver-win64 first commit 2024-07-22 15:21:36 +08:00
dist 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
edgedriver_win64 first commit 2024-07-22 15:21:36 +08:00
templates 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
app.py first commit 2024-07-22 15:21:36 +08:00
config.ini 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
flask_websoket2.py 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
flask_websoket.py 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
flask_websoket.spec 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
flask.log first commit 2024-07-22 15:21:36 +08:00
README.md 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
requirements.txt 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
run_window_v2.py 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
run_window_v3.py 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
run_window_v3.spec 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
run_window_v4.py 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
run_window.py first commit 2024-07-22 15:21:36 +08:00
setuptools-71.1.0-py3-none-any.whl 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
test.py 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
客户端.spec 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00
服务端.spec 初始化v 0.0.1 | @xrilang 2024-07-22 21:45:14 +08:00

依赖安装

pip install flask-socketio eventlet pip install eventlet pip install pipreqs pipreqs ./

驱动手动下载

谷歌浏览器驱动

查看当前谷歌浏览器版本 chrome://version/ 谷歌驱动 https://googlechromelabs.github.io/chrome-for-testing/

软件打包

打包后端

pyinstaller --onefile run_window_v4.py -n "客户端"

打包前端

不建议打包,建议以服务的方式运行

找到Pyinstaller所在路径打开然后进入hooks文件夹 创建hook-dnspython.py里面填写


from PyInstaller.utils.hooks import collect_submodules
hiddenimports = collect_submodules('dns')

还不行的话再创建一个hook-dns.py


from PyInstaller.utils.hooks import collect_submodules
hiddenimports = collect_submodules('dns')

然后cmd执行

pyinstaller -F flask_websoket.py -n "客户端" --add-data 'templates:templates' --add-data 'static:static' --hidden-import=eventlet.hubs.epolls --hidden-import=eventlet.hubs.kqueue --hidden-import=eventlet.hubs.selects --hidden-import=engineio.async_drivers.threading