RahulShaw / LinuxAcademy-DL

Download videos from your LinuxAcademy account for offline viewing
MIT License
65 stars 44 forks source link

AttributeError: 'NoneType' object has no attribute 'text' #3

Closed rajcspsg closed 5 years ago

rajcspsg commented 5 years ago

$ sudo python3 driver.py user_id password https://linuxacademy.com/cp/modules/view/id/327 Requesting download of https://linuxacademy.com/cp/modules/view/id/327 Darwin Sleeping for 15 seconds.. Attempting to login.. Login successful... Getting lesson links... Traceback (most recent call last): File "driver.py", line 88, in title = parsed_html.find('span', attrs={'class', 'course-title'}).text AttributeError: 'NoneType' object has no attribute 'text'

amitfegade121 commented 5 years ago

Hi, Try the below commands and download again.

>pip install selenium

>pip install beautifulsoup4

I am downloading other course now, once I  finished this, I will try to download your course and will let you know whether its a same problem for me or not.
rajcspsg commented 5 years ago

@amitfegade121 see I'm using python3 here. Is that correct?

RahulShaw commented 5 years ago

@rajcspsg - I tried downloading the course https://linuxacademy.com/cp/modules/view/id/327 and it worked for me. Strangely it does not work for you.

thomas-wolf commented 5 years ago

@rajcspsg : Maybe you have an active schedule for your course? Had the same issue. Then I tried deleting my schedule (you can do this in "manage this schedule" menu) and everything went fine.

rajcspsg commented 5 years ago

@thomas-wolf I don't know what is the issue with my mac. I created fedora VM and it worked there. I'm closing this issue.