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

AttributeError: 'NoneType' object has no attribute 'get' #25

Closed
stepbystepcode opened this issue Feb 19, 2022 · 2 comments
Closed

AttributeError: 'NoneType' object has no attribute 'get' #25

stepbystepcode opened this issue Feb 19, 2022 · 2 comments

Comments

@stepbystepcode
Copy link

$ python qcourse.py
0. 下载单个视频
1. 下载课程指定章节
2. 下载课程全部视频

输入需要的功能:2
请输入课程cid:310478
Traceback (most recent call last):
  File "D:\Downloads\qcourse_scripts\qcourse.py", line 140, in <module>
    main()
  File "D:\Downloads\qcourse_scripts\qcourse.py", line 121, in main
    course_name = get_course_from_api(cid)
  File "D:\Downloads\qcourse_scripts\utils.py", line 20, in get_course_from_api
    name = response.get('result').get('course_detail').get('name').replace('/', '/').replace('\\', '\')
AttributeError: 'NoneType' object has no attribute 'get'
@aiguoli
Copy link
Owner

aiguoli commented Feb 27, 2022

注意,得是你账号里有的才可以,点个人中心看下是不是没有添加

@aiguoli aiguoli closed this as completed Mar 8, 2022
@stepbystepcode
Copy link
Author

我的个人中心里是有这节课的
Screenshot_2022-04-06-15-44-48-011_com kiwibrowser browser

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