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

'NoneType' object has no attribute 'attrs' #19

Closed
jhl27 opened this issue Nov 30, 2021 · 5 comments
Closed

'NoneType' object has no attribute 'attrs' #19

jhl27 opened this issue Nov 30, 2021 · 5 comments

Comments

@jhl27
Copy link

jhl27 commented Nov 30, 2021

抢票的时候get_ticket 方法报这个,打印了一下响应,提示<bound method Response.json of <Response [404]>>,
这个地址https://www.91160.com/guahao/ystep1/uid-{}/depid-{}/schid-{}.html,

@lwm98
Copy link
Owner

lwm98 commented Dec 1, 2021

#6 (comment)

@lwm98
Copy link
Owner

lwm98 commented Dec 1, 2021

#6 (comment)

问题原因在这里,这个我也没办法啦,因为是随机出现的,这个只能自己去调试了

@lwm98 lwm98 closed this as completed Dec 1, 2021
@lwm98 lwm98 pinned this issue Dec 1, 2021
@jhl27
Copy link
Author

jhl27 commented Dec 1, 2021

#6 (comment)

问题原因在这里,这个我也没办法啦,因为是随机出现的,这个只能自己去调试了

我是一直都出现,这个怎么调试呢,昨天准备抓包,随便挂了一个号,结果抓包软件没开启,白白浪费了一次

@lwm98
Copy link
Owner

lwm98 commented Dec 2, 2021

只能抓包了,这个我也暂时不知道为啥有的有报错,有的没有报错。

@lwm98
Copy link
Owner

lwm98 commented Dec 2, 2021

也可以去官网挂号的时候看下,当页面到 https://www.91160.com/guahao/ystep1/uid..... 这个的时候,页面里面的dom元素(name: sch_data,name: mid)有没有值。 有可能是官网改成异步获取这个了,所以一直报这个错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants