Skip to content
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

运行的时候出现 #1

Closed
wuan11 opened this issue Jan 18, 2021 · 10 comments
Closed

运行的时候出现 #1

wuan11 opened this issue Jan 18, 2021 · 10 comments
Labels
question Further information is requested

Comments

@wuan11
Copy link

wuan11 commented Jan 18, 2021

Traceback (most recent call last):
File "E:\HUAWEI-STORE-GO-main\HUAWEI STORE.py", line 215, in
for account, pwd in data.items():
AttributeError: 'str' object has no attribute 'items'

@XYZliang
Copy link
Owner

我在多个系统中进行测试都没有发现这个问题。
这段代码是旧项目的,我一开始没有仔细看这里,我只能看浅层次看懂,百度看了一下后,暂时没发现有什么问题。
百度无果,大多数问题指向你用python打包时,pyinstaller版本太低。建议将python、selenium、pyinstaller升级到最新版本后再进行尝试。
感谢提醒,我仔细看了这里代码才发现。。。。这个py脚本是可以多线程多账号的~

@XYZliang XYZliang added the question Further information is requested label Jan 19, 2021
@hacken156026692
Copy link

请问一下,我想用安卓手机进行抢购,请问,用python手机版或termux终端器,能实现吗?

@XYZliang
Copy link
Owner

请问一下,我想用安卓手机进行抢购,请问,用python手机版或termux终端器,能实现吗?

用termux给手机安装上相关环境是可以的,但我不确定有没有对应安卓手机上的webdriver。网络上有很多例子,我也没有仔细看,这些都超过我能力之外。

@Pigdrum
Copy link

Pigdrum commented Jan 24, 2021

Traceback (most recent call last):
File "E:\HUAWEI-STORE-GO-main\HUAWEI STORE.py", line 215, in
for account, pwd in data.items():
AttributeError: 'str' object has no attribute 'items'

ACCOUNT必须是map

@vickyqi7
Copy link

vickyqi7 commented Feb 7, 2021

请问py虽然跑起来了,但是就卡在了登陆后的那个个人主页里再也不动了。。。。为什么?

@XYZliang
Copy link
Owner

XYZliang commented Feb 8, 2021

请问py虽然跑起来了,但是就卡在了登陆后的那个个人主页里再也不动了。。。。为什么?

最近都没去抢,刚刚试了下脚本好像没有问题。
个人主页?可以提供下这个网址我看看么~

有空我优化一下登陆成功跳转的逻辑。

@skklkim
Copy link

skklkim commented Feb 23, 2021

github
请问我运行后打开chrome,报错了

@XYZliang
Copy link
Owner

github
请问我运行后打开chrome,报错了

你的环境问题,百度了一下,可能情况有很多。大概率是因为,你的chrome_driver参数输错了,应该输入chromedriver.exe这个文件的位置,我看你输入的是chrome浏览器的文件位置。(我的描述可能误导了你,下一个版本我会改一下)

@skklkim
Copy link

skklkim commented Feb 23, 2021 via email

@XYZliang
Copy link
Owner

非常感谢,我也百度解决了这个问题   目前脚本运行非常好  我也在学习python中  以后期待能跟你学习 

互相学习!

@XYZliang XYZliang closed this as completed Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants