-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于linux下使用 #95
Comments
没有尝试过,目前帮不到你,蹲个知道的有缘人 |
linux下friefox正常.linux firefox比较友好吧.可以试试 |
你是安装的firefox么,main调用是直接报错,手动运行了driver看了下输出而已,你是桌面linux么,我是想命令行然后远程来用的 |
手动运行driver看了下version而已 |
用firefox的话,也要下driver么 |
自己把debug打开看一下错误,firefox也要driver,firefox的下最新就行应该是 |
建议你先查一下,chrome运行版本。你虽然自己安装了一版本,有可能系统原先也有了一版本,而且默认了它。 |
Linux懒人可以用这个镜像 FROM python:3.9.7-slim
ADD https://github.com/tofuliang/aria2/releases/download/20211031/aria2c-linux-amd64.tar /tmp/aria2c.tar
ADD https://github.com/develar/7zip-bin/blob/master/linux/x64/7za?raw=true /usr/bin/7za
RUN cd /tmp && tar xf /tmp/aria2c.tar && mv aria2c /usr/bin/aria2c && chmod +x /usr/bin/aria2c && chmod +x /usr/bin/7za && rm /tmp/aria2c.tar && aria2c http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_95.0.4638.54-1_amd64.deb \
&& aria2c http://chromedriver.storage.googleapis.com/95.0.4638.54/chromedriver_linux64.zip \
&& dpkg -i google-chrome-stable_95.0.4638.54-1_amd64.deb || apt update && apt -y --fix-broken install && dpkg -i google-chrome-stable_95.0.4638.54-1_amd64.deb && google-chrome --version \
&& apt-get clean \
&& aria2c https://github.com/yqchilde/JDMemberCloseAccount/archive/refs/heads/main.zip && 7za x JDMemberCloseAccount-main.zip \
&& 7za e chromedriver_linux64.zip && mv chromedriver JDMemberCloseAccount-main/drivers/chromedriver \
&& cd JDMemberCloseAccount-main && cat requirements.txt |grep -vE "easyocr|baidu"|awk -F "~" '{print $1}'|xargs pip3 install --no-cache-dir \
&& cd / && mv /tmp/JDMemberCloseAccount-main /JDMemberCloseAccount
WORKDIR /JDMemberCloseAccount |
厉害了,感谢分享 |
感谢分享,只是还是报找不到驱动的错误 |
你是如何使用的?详细描述一下? |
与楼上差不多,不过是docker run 的时候 -v 映射了本地config.yaml,进去容器内 cat config.yaml 也是我映射的文件内容 |
但是清一色识别未果 |
不用docker时我也是这样,所以我上面说 |
感谢,确实是 |
我没用localhost。用的宿主机的 |
你用的容器内的ws的? |
config.yaml内改 |
明白了 |
不知道作者有没有尝试过linux下无头?我安装的是chromium-browser
λ chromium-browser --version
Chromium 92.0.4515.131 snap
下了chromedriver
λ ./chromedriver
Starting ChromeDriver 92.0.4515.107 (87a818b10553a07434ea9e2b6dccf3cbe7895134-refs/branch-heads/4515@{#1634}) on port 9515
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
但是执行main.py提示浏览器配置错误。不知道怎么解决,求教
The text was updated successfully, but these errors were encountered: