Skip to content

TypeError: list indices must be integers or slices, not str #1

Description

@t3rminalx

When I try to grab some courses I get the above error. This is one of the courses it happens with;

https://www.skillshare.com/classes/Boudoir-Portrait-Retouching-for-Photographers/829829877/projects?via=member-home-EnrolledClassesLessonsSection


Traceback (most recent call last):
  File "/home/anthony/skillsharedownloader/ss.py", line 11, in <module>
    dl.download_course_by_url(course_url)
  File "/home/anthony/skillsharedownloader/downloader.py", line 36, in download_course_by_url
    self.download_course_by_class_id(m.group(1))
  File "/home/anthony/skillsharedownloader/downloader.py", line 70, in download_course_by_class_id
    for u in data['_embedded']['units']['_embedded']['units']:
TypeError: list indices must be integers or slices, not str

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions