Code Monkey home page Code Monkey logo

huawei-store-go's Introduction

coding

Hi, I'm XYZliang 🙋‍♂️

A Chinese person from Jiangxi Province😀. Graduated from the Software Engineering Department of Jiangxi University of Finance and Economics with a bachelor's degree in software engineering. I have served as a class leader and vice chairman of the student union of the college, responsible for academic competitions.

Now I am recommended to pursue a master's degree in computer science and technology at the University of Electronic Science and Technology of China and Technology. Currently working as an algorithm engineer intern at Chengdu Shuzhilian Technology Co., Ltd.

An overview of me and some of my projects can be found on my GitHub repository. If you want to know more about me, I have some personal information platforms (gradually being established) below. Let's take a look together!

Thank you for your attention ❤

🔨Languages

JavaScript HTML HTML5 CSS CSS3 Python C C++ Java

🚀Tools & Frameworks

Git GitHub GithubA MYSQL Markdown Jquery Django Spring Postman not Chrome Safari

👩‍💻IDES

Xcode vsc vs py idea clion

💗Github

XYZliang's GitHub stats

Top Langs

Well, Top languages shown above does not indicate my skill level or something like that, like its title - "Most Used Languages", it's just a github metric of which languages I have the most code on Github.

huawei-store-go's People

Contributors

antfootalex avatar xyzliang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

huawei-store-go's Issues

发生报错

Exception in thread Thread-1:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "HUAWEI STORE GO.py", line 324, in loginMall
goToBuy(driver, user)
File "HUAWEI STORE GO.py", line 178, in goToBuy
text = driver.find_elements_by_xpath(
IndexError: list index out of range

这么久有抢到吗?

今天试了一下,driver.find_element_by_id这个方法可能定位错误了,明天再试试。
就想问一下能抢到吗?

运行的时候出现

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
你好我在用30epro做测试的时候发现报错

COLOR = '亮黑色'

EDITION = '5G全网通 256GB'

COMBO = '官方标配'

颜色选择错误!请手动选择!
版本选择错误!请手动选择!
套餐选择错误!请手动选择!
2021-02-24 16:46:1215502188239准备完毕,开始等待
Exception in thread Thread-1:
Traceback (most recent call last):
File "D:\python3.8.8\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "D:\python3.8.8\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "C:/Users/LEgo1/Desktop/HUAWEI-STORE-GO-main (1)/HUAWEI-STORE-GO-main/HUAWEI STORE GO.py", line 324, in loginMall
goToBuy(driver, user)
File "C:/Users/LEgo1/Desktop/HUAWEI-STORE-GO-main (1)/HUAWEI-STORE-GO-main/HUAWEI STORE GO.py", line 178, in goToBuy
text = driver.find_elements_by_xpath(
IndexError: list index out of range

Process finished with exit code 0

开始抢购后报错

image
image
请问开始抢购后这样报错怎么解决,网上搜了说是定位元素有问题,但是我去找了抢购那个按钮的id确实和代码里写的一致没有问题...

排队完到订单确认的界面报错,浏览器自动关闭

D:\Python\Python39\python.exe "E:/Downloads/软件/huaweitest/HUAWEI-STORE-GO-main/HUAWEI STORE GO.py"
[email protected]成功输入了账号密码,尝试登陆.
[email protected]请手动完成认证并登陆!
请输入图形验证码
[email protected]验证码已经发送至136******80
2021-02-26 20:02:[email protected]登录成功!!
[email protected]打开购买页面
[email protected]亮黑色选择成功!
[email protected]全网通 8GB+128GB选择成功!
[email protected]官方标配选择成功!
2021-02-26 20:03:[email protected]准备完毕,开始等待
2021-02-26 20:03:[email protected]未到脚本开启时间,请选择好抢购的颜色、版本、套餐等(若已经配置则忽略),将在设定的脚本启动时间前15秒启动

2021-02-26 20:04:[email protected]即将开始抢购,程序启动
2021-02-26 20:04:[email protected]可以开始申购,立即申购
[email protected]开始排队:2021-02-26 20:04:50
2021-02-26 20:04:[email protected]:排队中
2021-02-26 20:04:[email protected]:排队中
2021-02-26 20:04:[email protected]:排队中
Exception in thread Thread-1:
Traceback (most recent call last):
File "D:\Python\Python39\lib\threading.py", line 954, in _bootstrap_inner
self.run()
File "D:\Python\Python39\lib\threading.py", line 892, in run
self._target(*self._args, **self.kwargs)
File "E:\Downloads\软件\huaweitest\HUAWEI-STORE-GO-main\HUAWEI STORE GO.py", line 342, in loginMall
goToBuy(driver, user)
File "E:\Downloads\软件\huaweitest\HUAWEI-STORE-GO-main\HUAWEI STORE GO.py", line 227, in goToBuy
onQueue(driver, user)
File "E:\Downloads\软件\huaweitest\HUAWEI-STORE-GO-main\HUAWEI STORE GO.py", line 75, in onQueue
errorbutton = driver.find_element_by_id("boxCloseBtn")
File "D:\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 360, in find_element_by_id
return self.find_element(by=By.ID, value=id
)
File "D:\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "D:\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "D:\Python\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="boxCloseBtn"]"}
(Session info: chrome=88.0.4324.182)

Process finished with exit code 0

win10+python3.9.1+Chrome 88.0.4324.182

倒计时结束以后没获取到按钮(再运行有了但就要排队了。。)

Traceback (most recent call last):
File "C:\Program Files\Python37\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "C:\Program Files\Python37\lib\threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "e:\DEV\HUAWEI STORE DEV GO.py", line 351, in loginMall
goToBuy(driver, user)
File "e:\DEV\HUAWEI STORE DEV GO.py", line 186, in goToBuy
if buyButton.get_attribute('class') != 'product-button02 disabled':
File "C:\Program Files\Python37\lib\site-packages\selenium\webdriver\remote\webelement.py", line 141, in get_attribute
File "C:\Program Files\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 636, in execute_script
'args': converted_args})['value']
File "C:\Program Files\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Program Files\Python37\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: element is not attached to the page document
(Session info: chrome=88.0.4324.182)

HUAWEI STORE GO.py V3.1 登录问题

V3.1测试逻辑问题,脚本运行后打开浏览器跳转登录页面,填入账号密码后直接跳转商品页面后再次跳回登录页面

写的啥哦

成功跑起来,自动化登陆要验证码直接跳过去了,我手动挡登陆挂着到时间还是没买上,到时间就结束了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.