xchaoinfo / fuck-login

模拟登录一些知名的网站,为了方便爬取需要登录的网站
5.86k stars 2.02k forks source link

知乎myzhihu.py在Linux下打开验证码的问题 #67

Open JackieMium opened 7 years ago

JackieMium commented 7 years ago

os.startfile('checkcode.gif') 仅在Windows下可用,Linux下应该是类似于:

import subprocess, sys

opener ="open" if sys.platform == "darwin" else "xdg-open"
subprocess.call([opener, 'checkcode.gif'])
xchaoinfo commented 7 years ago

嗯,你可以 Pull Request,做一个 windows 和 linux 兼容的操作。 @JackieMium

JackieMium commented 7 years ago

@xchaoinfo 我不会Pull Request :(

ghost commented 7 years ago

在Linux直接与shell交互

display info.jpg

这样就可以