DEV Community


Discussion on: How to download courses from Linkedin Learning with python

shahidtweetz profile image
Shahid Hussain • Edited

C:\Users\User1>llvd -c what-is-php-for-wordpress -r 720
Please enter your Linkedin email address:
Enter your Linkedin Password:
Traceback (most recent call last):
File "c:\python39\lib\site-packages\llvd\", line 106, in download_entire_course
course_name = r.json()['elements'][0]['title']
KeyError: 'elements'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Python39\Scripts\", line 33, in
sys.exit(load_entry_point('llvd==2.2.5', 'console_scripts', 'llvd')())
File "c:\python39\lib\site-packages\click\", line 829, in call
return self.main(*args, **kwargs)
File "c:\python39\lib\site-packages\click\", line 782, in main
rv = self.invoke(ctx)
File "c:\python39\lib\site-packages\click\", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\python39\lib\site-packages\click\", line 610, in invoke
return callback(*args, **kwargs)
File "c:\python39\lib\site-packages\", line 60, in main
File "c:\python39\lib\site-packages\llvd\", line 81, in run
File "c:\python39\lib\site-packages\llvd\", line 179, in download_entire_course
TypeError: unsupported format string passed to NoneType.


knowbee profile image
Bruce Author

You are getting this error because you are using the wrong slug for the course

Instead of using what-is-php-for-wordpress you should use php-for-wordpress.
It is advised to navigate to a course you are trying to download, then copy the slug from there instead of the course name

I am guessing this the course you were trying to download (

knowbee profile image
Bruce Author

Make sure you also update to the latest version 2.2.6 with better error handling

Thanks for using the tool 😊