Closed Ziad-Tawfik closed 9 months ago
I get the same error with different IPs, cookies and accounts. Some specific courses will result an error (like "AWS Cloud Practitioner Certification")
I am kindof busy with work but saw some issue are reported. The above one looks like is because the course have duplicate videos:
The current cookie check logic is written in such a way that if there are any two videos with same URL in the entire course then it fails.
I can make some changes to handle this for now.
Please try out using pip install -U git+https://github.com/debakarr/kodekloud-downloader.git
I commented out this part of logic so the bot is working without failure.
raise SystemExit( "Your cookie might have expired or you don't have access to the course." "\nPlease refresh/regenerate the cookie or enroll in the course and try again." )
however the main problem was in scraping the data as the value of below two variables (main_lesson__content & topics) don't include the correct values for videos when using soup.find and zip function
main_lesson_content = soup.find("div", class_="lessons_main__content") or soup.find("div", class_="ld-lesson-list") topics = main_lesson_content.find_all("div", class_="w-dyn-item") or main_lesson_content.find_all( "div", class_="ld-item-list-items")
I investigated and printed both of them found that scraped part of the "billing and pricing" topic is zipped again with urls of the previous part which is "Technology - Part Two", so this raises an error however the above fix will just create a folder of "billing and pricing" topic but downloads all the videos in the "Technology - Part Two" again
Hello, Using colab notebook the download stopped with the below error, noting that it stopped on aws practitioner quiz page
I think the error is due to the condition in models.py
lessons_names = topic.find_all("span", class_="ld-topic-title")
as this page doesn't contain any videos however it has the same class
.learndash-wrapper .ld-table-list .ld-table-list-items div.ld-table-list-item a.ld-table-list-item-preview span.ld-topic-title.video_topic_enabled:before { content: '\eef7'; border: 1px solid; font-size: 13px; }