r0oth3x49 / acloud-dl Goto Github PK
View Code? Open in Web Editor NEWA cross-platform python based utility to download courses from acloud.guru for personal offline use.
License: MIT License
A cross-platform python based utility to download courses from acloud.guru for personal offline use.
License: MIT License
Thanks for creating this. I've tried the tool and for most courses it works. However for some I'm getting the error below. Any help is much appreciated.
Traceback (most recent call last):
File "acloud-dl.py", line 213, in <module>
main()
File "acloud-dl.py", line 206, in main
acloud.course_download(path=options.output, quality=options.quality)
File "acloud-dl.py", line 126, in course_download
lecture_best = lecture.get_quality(best_quality=lecture_best, streams=lecture_streams, requested=quality)
File "/Users/piethein/Sites/acloud-dl/acloud/_shared.py", line 210, in get_quality
if not best:
UnboundLocalError: local variable 'best' referenced before assignment
I try to download a course "Course 'Docker for DevOps - From Development to Production", but get the error (all other courses downloads works fine):
[*] : Course 'Docker for DevOps - From Development to Production'.
Traceback (most recent call last):on ..
File "acloud-dl.py", line 334, in <module>
main()
File "acloud-dl.py", line 327, in main
acloud.course_download(path=options.output, quality=options.quality, download_all=options.download_all)
File "acloud-dl.py", line 209, in course_download
course = course.get_course(keep_alive=download_all)
File "/home/pride/acloud-dl-master/acloud/_shared.py", line 88, in get_course
self._process_course(keep_alive=keep_alive)
File "/home/pride/acloud-dl-master/acloud/_internal.py", line 69, in _process_course
self._course = InternCloudGuruCourse(self._info, self._session, keep_alive)
File "/home/pride/acloud-dl-master/acloud/_internal.py", line 79, in __init__
super(InternCloudGuruCourse, self).__init__()
File "/home/pride/acloud-dl-master/acloud/_shared.py", line 109, in __init__
self._fetch_course()
File "/home/pride/acloud-dl-master/acloud/_internal.py", line 85, in _fetch_course
self._info = self._real_extract(course_id=course_id)
File "/home/pride/acloud-dl-master/acloud/_extract.py", line 486, in _real_extract
'lectures' : self._extract_lectures(lectures)
File "/home/pride/acloud-dl-master/acloud/_extract.py", line 381, in _extract_lectures
sub_id = self._extract_sub_id(videoposter)
File "/home/pride/acloud-dl-master/acloud/_extract.py", line 358, in _extract_sub_id
videoposter = videoposter.rsplit("/", 1)[-1]
AttributeError: 'NoneType' object has no attribute 'rsplit'
The same situation with the course "Introduction to Ansible".
For the course "AZ-103 Microsoft Azure Administrator 2020" most files are unreachable. But some of them I can download.
Course 'AZ-103 Microsoft Azure Administrator 2020'.
[*] : Downloaded course information .. (done)
[+] : Chapter(s) (24).
[*] : Lecture(s) (100).
[*] : Downloading chapter : (1 of 24)
[+] : Chapter (01 Course Introduction and Resources)
[*] : Found (2) lectures ...
[*] : Lecture(s) : (1 of 2)
[*] : Downloading (001 Welcome)
[*] : Lecture : '001 Welcome' (download skipped).
[-] : URLError : either your internet connection is not working or server aborted the request
[*] : Lecture(s) : (2 of 2)
[*] : Downloading (002 Azure High Level Overview)
[*] : Lecture : '002 Azure High Level Overview' (download skipped).
[-] : URLError : either your internet connection is not working or server aborted the request
[*] : Downloading chapter : (2 of 24)
[+] : Chapter (02 Manage Azure Subscriptions)
[*] : Found (6) lectures ...
[*] : Lecture(s) : (1 of 6)
[*] : Downloading (001 Intro to Accounts and Subscriptions)
[*] : Lecture : '001 Intro to Accounts and Subscriptions' (download skipped).
[-] : URLError : either your internet connection is not working or server aborted the request
[*] : Lecture(s) : (2 of 6)
[*] : Downloading (002 Accessing Azure)
[*] : 30.11MB/30.11MB 100.00% |##############################| 5.74MB/s
[+] : Downloaded (002 Accessing Azure)
The same situation with courses "Google Kubernetes Engine (GKE)_ Beginner to Pro" but on that course all files are unreachable.
Can you provide a picture description, thank you very much
Running the following command does not list any courses
$ python3 acloud-dl.py -c file_containing_cookie.txt --info
Instead it gives the following output
[*] : Downloading accessible courses information .. (done)
[?] : select course number between (1/0):
Entering 1 or 0 and typing enter gives following error
[-] : User input is required, No input specified ..
The design of website acloud.guru has changed lately.
Could you please check?
AWS SA Associate course.
lectures are detected however not all are downloaded
[*] : Downloading chapter : (5 of 13)
[+] : Chapter (05 Databases On AWS)
[*] : Found (14) lectures ...
[*] : Lecture(s) : (1 of 14)
[*] : Downloading (001 Databases 101)
[*] : Lecture : '001 Databases 101' (already downloaded).
[*] : Lecture(s) : (2 of 14)
[*] : Downloading (002 Lets Create An RDS Instance)
[*] : Lecture : '002 Lets Create An RDS Instance' (already downloaded).
[*] : Lecture(s) : (3 of 14)
[*] : Downloading (003 RDS Backups Multi-AZ Read Replicas)
[*] : Lecture : '003 RDS Backups Multi-AZ Read Replicas' (already downloaded).
[*] : Lecture(s) : (4 of 14)
[*] : Downloading (004 RDS Backups Multi-AZ Read Replicas - Lab)
[*] : Lecture : '004 RDS Backups Multi-AZ Read Replicas - Lab' (already downloaded).
[*] : Lecture(s) : (5 of 14)
[*] : Downloading (005 DynamoDB)
[*] : Lecture : '005 DynamoDB' (already downloaded).
[*] : Lecture(s) : (7 of 14)
[*] : Downloading (007 Redshift)
[*] : Lecture : '007 Redshift' (already downloaded).
[*] : Lecture(s) : (8 of 14)
[*] : Downloading (008 Aurora SAA-C02)
[*] : Lecture : '008 Aurora SAA-C02' (already downloaded).
[*] : Lecture(s) : (9 of 14)
[*] : Downloading (009 Elasticache)
[*] : Lecture : '009 Elasticache' (already downloaded).
[*] : Lecture(s) : (13 of 14)
[*] : Downloading (013 Databases Summary)
[*] : Lecture : '013 Databases Summary' (already downloaded).
Episodes such as RedShift are skipped entirely
https://acloud.guru/course/aws-certified-solutions-architect-associate/learn/dbs-on-aws/redshift/
I am getting the following error while downloading
Python 3 Scripting for System Administrators
and
Introduction to Ansible
[*] : Course 'Introduction to Ansible'.
Traceback (most recent call last):on ..
File "acloud-dl.py", line 334, in
main()
File "acloud-dl.py", line 327, in main
acloud.course_download(path=options.output, quality=options.quality, download_all=options.download_all)
File "acloud-dl.py", line 209, in course_download
course = course.get_course(keep_alive=download_all)
File "C:\Code\acloud-dl\acloud_shared.py", line 88, in get_course
self._process_course(keep_alive=keep_alive)
File "C:\Code\acloud-dl\acloud_internal.py", line 69, in _process_course
self._course = InternCloudGuruCourse(self._info, self._session, keep_alive)
File "C:\Code\acloud-dl\acloud_internal.py", line 79, in init
super(InternCloudGuruCourse, self).init()
File "C:\Code\acloud-dl\acloud_shared.py", line 109, in init
self._fetch_course()
File "C:\Code\acloud-dl\acloud_internal.py", line 85, in _fetch_course
self._info = self._real_extract(course_id=course_id)
File "C:\Code\acloud-dl\acloud_extract.py", line 486, in _real_extract
'lectures' : self._extract_lectures(lectures)
File "C:\Code\acloud-dl\acloud_extract.py", line 405, in _extract_lectures
sources = self._extract_sources(sources)
File "C:\Code\acloud-dl\acloud_extract.py", line 246, in _extract_sources
'height' : height,
UnboundLocalError: local variable 'height' referenced before assignment
Hi, I have enrolled for 7-day free trial. Will I be able to download all courses?
Does this script work for 7 days trial period?
Thanks....
getting error when trying to download from acloud guru.
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 1418: character maps to
File "acloud-dl.py", line 332, in
main()
File "acloud-dl.py", line 325, in main
acloud.course_download(path=options.output, quality=options.quality, download_all=options.download_all)
File "acloud-dl.py", line 241, in course_download
self.download_lectures_only(lecture_best=lecture_best, lecture_title=lecture_title, inner_index=lecture_index, lectures_count=lectures_count, lecture_assets=lecture_assets, lecture_subs=lecture_subs, filepath=filepath)
File "acloud-dl.py", line 174, in download_lectures_only
self.download_lectures(lecture_best=lecture_best, lecture_title=lecture_title, inner_index=inner_index, lectures_count=lectures_count, filepath=filepath)
File "acloud-dl.py", line 159, in download_lectures
retval = lecture_best.download(filepath=filepath, quiet=True, callback=self.show_progress)
File "C:\Users\ezpedvi\Desktop\acloud-dl\acloud_shared.py", line 439, in download
chunk = response.read(chunksize)
File "C:\Users\ezpedvi\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 461, in read
n = self.readinto(b)
File "C:\Users\ezpedvi\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 505, in readinto
n = self.fp.readinto(b)
File "C:\Users\ezpedvi\AppData\Local\Programs\Python\Python37\lib\socket.py", line 589, in readinto
return self._sock.recv_into(b)
File "C:\Users\ezpedvi\AppData\Local\Programs\Python\Python37\lib\ssl.py", line 1071, in recv_into
return self.read(nbytes, buffer)
File "C:\Users\ezpedvi\AppData\Local\Programs\Python\Python37\lib\ssl.py", line 929, in read
return self._sslobj.read(len, buffer)
ssl.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2570)
Couldn't download following courses getting below errors
I have a good internet connection able to download other courses
[] : Downloading chapter : (1 of 13)
[+] : Chapter (01 Introduction)
[] : Found (3) lectures ...
[] : Lecture(s) : (1 of 3)
[] : Downloading (001 Introduction)
[*] : 23.79MB/23.79MB 100.00% |##############################| 839.51kB/s
[+] : Downloaded (001 Introduction)
[] : Lecture(s) : (2 of 3)
[] : Downloading (002 The Exam Blueprint)
[*] : Lecture : '002 The Exam Blueprint' (download skipped).
[-] : URLError : either your internet connection is not working or server aborted the request
[] : Lecture(s) : (3 of 3)
[] : Downloading (003 Why Should I Learn and Get Certified with AWS)
[*] : Lecture : '003 Why Should I Learn and Get Certified with AWS' (download skipped).
[-] : URLError : either your internet connection is not working or server aborted the request
[] : Downloading chapter : (2 of 13)
[+] : Chapter (02 AWS - 10000-Foot Overview)
[] : Found (4) lectures ...
Not able to download courses
Hi!
I have this error:
[-] : Cookies error, Request Headers is required...
[i] : Copy Request Headers for single request to a file, while you are logged in.
But I saved ok my cookies.txt
Also, I´m using a VPN.
Can you help me?
Thanks!
From the [*] : Course 'Google Certified Associate Cloud Engineer'.
[*] : Downloading asset(s)
[*] : Downloading (003 Lab Script Commands.txt)
[*] : Asset : '003 Lab Script Commands.txt' (download skipped).
[-] : Exception : 'NoneType' object has no attribute 'strip'
Also seen the same error for Ansible course and HTML files.
Had a look at the code, but, python is beyond me to know where to debug.
Hi,
Running from windows 10 and haved installed requirements. Get the following when trying to execute.
PS C:\temp\acloud-dl-master> python acloud-dl.py -c cookie.txt
Traceback (most recent call last):
File "acloud-dl.py", line 7, in
import acloud
File "C:\temp\acloud-dl-master\acloud_init_.py", line 32, in
from ._acloud import courses
File "C:\temp\acloud-dl-master\acloud_acloud.py", line 26, in
from ._internal import InternCloudGuruCourses as CloudGuru
File "C:\temp\acloud-dl-master\acloud_internal.py", line 30, in
from ._extract import CloudGuru
File "C:\temp\acloud-dl-master\acloud_extract.py", line 297
subtitle_url = f"https://acloudguru-subtitles-production.s3.amazonaws.com/{cid.group()
}.vtt"
^
SyntaxError: invalid syntax
Thanks
AWS Courses (machine learning and Network )with attachments to .html hanging up on download.
skipped by modifying _extract.py
html|htm
regex = r"(?i)(?:^.*.(?Pjpg|gif|doc|pdf|zip|docx|ppt|pptx|pptm|txt|py|c|json|md|html|htm|sh|batch|bat))$"
dirty fix though.
Thanks for your efforts.
Many videos are getting skipped for this course. for all other courses it is working fine.
[?] : select course number between (1/28): 19
[] : Downloaded course information .. (done)
[] : Course 'Docker for DevOps - From Development to Production'.
[+] : Chapter(s) (14).
[*] : Lecture(s) (78).
[] : Downloading chapter : (1 of 14)
[+] : Chapter (01 Introduction)
[] : Found (4) lectures ...
[] : Downloading chapter : (2 of 14)
[+] : Chapter (02 Getting Setup)
[] : Found (5) lectures ...
[] : Downloading chapter : (3 of 14)
[+] : Chapter (03 Docker Basics)
[] : Found (5) lectures ...
[] : Downloading chapter : (4 of 14)
[+] : Chapter (04 Building a Dockerized Web App)
[] : Found (2) lectures ...
[] : Downloading chapter : (5 of 14)
[+] : Chapter (05 Dockerized Flask App)
[] : Found (6) lectures ...
[] : Lecture(s) : (2 of 6)
[] : Downloading (002 The Dockerfile)
[*] : 35.36MB/35.36MB 100.00% |##############################| 1.50MB/s
[+] : Downloaded (002 The Dockerfile)
[] : Downloading chapter : (6 of 14)
[+] : Chapter (06 Dockerized Rails App)
[] : Found (7) lectures ...
[] : Lecture(s) : (3 of 7)
[] : Downloading (003 The Dockerfile)
[*] : 36.10MB/36.10MB 100.00% |##############################| 1.82MB/s
[+] : Downloaded (003 The Dockerfile)
requirement.txt executed.
cURL copied in a file aaa.txt
when try to run python acloud-dl.py -c aaa.txt
shows error "ModuleNotFoundError: No module named 'acloud'"
try to pip install acloud
shows error "ERROR: Could not find a version that satisfies the requirement acloud (from versions: none)
ERROR: No matching distribution found for acloud"
After the latest patches, it is not downloading subtitles and attachments.
and Download courses by providing range to start from
if I select 1 its downloads all the available courses, rest of the course selection numbers are working fine
Following error happens when using this python script.
'NoneType' object has no attribute 'strip'
This happened when trying to download "Introduction to Ansible" course.
Getting this error whenever I try this bot. I already saved the cookies.txt within same directory.what am I doing wrong?
Getting below error for many videos in a particular course. Any suggestions?
No relevant cookies were found, generating from acoud.guru, most of the xhr requests were originating from third-party CDN's and Js files on-server.
Hi,
I'm trying to use so I can download and watch offline but either they've charged their architecture or I'm not able to see the requests - can anyone confirm if this is still functional please?
i has a issue when get download , please help me :D
Traceback (most recent call last):
File "acloud-dl.py", line 334, in
main()
File "acloud-dl.py", line 327, in main
acloud.course_download(path=options.output, quality=options.quality, download_all=options.download_all)
File "acloud-dl.py", line 243, in course_download
self.download_lectures_only(lecture_best=lecture_best, lecture_title=lecture_title, inner_index=lecture_index, lectures_count=lectures_count, lecture_assets=lecture_assets, lecture_subs=lecture_subs, filepath=filepath)
File "acloud-dl.py", line 174, in download_lectures_only
self.download_lectures(lecture_best=lecture_best, lecture_title=lecture_title, inner_index=inner_index, lectures_count=lectures_count, filepath=filepath)
File "acloud-dl.py", line 159, in download_lectures
retval = lecture_best.download(filepath=filepath, quiet=True, callback=self.show_progress)
File "/home/vt_admin/acloud-dl/acloud/_shared.py", line 380, in download
req = compat_request(self.url, headers={'User-Agent' : HEADERS.get('User-Agent')})
File "/usr/lib64/python2.7/urllib2.py", line 229, in init
self.__original = unwrap(url)
File "/usr/lib64/python2.7/urllib.py", line 1059, in unwrap
url = url.strip()
AttributeError: 'dict' object has no attribute 'strip'
File "acloud-dl.py", line 256, in <module>
main()
File "acloud-dl.py", line 246, in main
acloud.course_list_down()
File "acloud-dl.py", line 28, in course_list_down
course = acloud.courses(cookies=self.cookies)
File "D:\Tools\acloud-dl\acloud\_acloud.py", line 35, in courses
return CloudGuru(cookies, basic, callback)
File "D:\Tools\acloud-dl\acloud\_internal.py", line 43, in __init__
super(InternCloudGuruCourse, self).__init__(*args, **kwargs)
File "D:\Tools\acloud-dl\acloud\_shared.py", line 61, in __init__
self._fetch_course()
File "D:\Tools\acloud-dl\acloud\_internal.py", line 57, in _fetch_course
sys.stdout.write(fc + sd + "[" + fm + sb + "%s" % (counter) + fc + sd + "] : " + fg + sb + "%s\n" % (title))
File "C:\Python27\lib\site-packages\colorama\ansitowin32.py", line 41, in write
self.__convertor.write(text)
File "C:\Python27\lib\site-packages\colorama\ansitowin32.py", line 162, in write
self.write_and_convert(text)
File "C:\Python27\lib\site-packages\colorama\ansitowin32.py", line 190, in write_and_convert
self.write_plain_text(text, cursor, len(text))
File "C:\Python27\lib\site-packages\colorama\ansitowin32.py", line 195, in write_plain_text
self.wrapped.write(text[start:end])
File "C:\Python27\lib\encodings\cp866.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_map)
nicodeEncodeError: 'charmap' codec can't encode character u'\u2013' in position 34: character maps to <undefined>
Thanks but it didnt download the mp4s only the headings using python acloud-dl.py -c cookies.txt -q 1080
I'm currently trying to use the tool and am continuously getting this error.
[-] : Authorization error : it seems your authorization token is expired.
[i] : Login again & copy Request headers for a single request to file..
This is the content of my cookie file:
curl 'https://prod-api.acloud.guru/bff/graphql' -H 'Sec-Fetch-Mode: cors' -H 'Origin: https://learn.acloud.guru' -H 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJAUTHCODEAUTHCODEeJRoYzLqm2OrQ' -H 'content-type: application/json' -H 'accept: */*' -H 'Referer: https://learn.acloud.guru/browse' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36' -H 'apollographql-client-version: 633' -H 'apollographql-client-name: learn-production' --data-binary '{"operationName":"handsonLabs","variables":{},"query":"query handsonLabs {\n handsonLabs {\n labs {\n labId\n title\n labUrl\n thumbnailUrl\n duration\n isPopular\n topic\n vendor\n service\n technology\n difficulty\n createdDate\n updatedDate\n publishedDate\n __typename\n }\n __typename\n }\n}\n"}' --compressed
python acloud-dl.py -c file.txt --info
__ __ ____
____ / / __ / / ____/ / /
/ __ `/ / / __ / / / / __ // __ / /
/ // / // / // / // / // // // / /
_,_/_//_/_,/_,/ _,/_/
Version : 0.1
Author : Nasir Khan (r0ot h3x49)
Github : https://github.com/r0oth3x49
Traceback (most recent call last):es information ..
File "acloud-dl.py", line 332, in
main()
File "acloud-dl.py", line 322, in main
acloud.course_list_down()
File "acloud-dl.py", line 31, in course_list_down
courses = acloud.courses(cookies=self.cookies)
File "C:\acloud-dl-master\acloud_acloud.py", line 35, in courses
return CloudGuru(cookies, basic, callback).courses
File "C:\acloud-dl-master\acloud_internal.py", line 46, in init
super(InternCloudGuruCourses, self).init(*args, **kwargs)
File "C:\acloud-dl-master\acloud_shared.py", line 56, in init
self._fetch_courses()
File "C:\acloud-dl-master\acloud_internal.py", line 55, in _fetch_courses
self._courses = [InternCloudGuruCourseDownload(c, self) for c in courses]
TypeError: 'NoneType' object is not iterable
Will cbtnuggets-dl be incorporated into one of these?
Thanks
Traceback (most recent call last):
File "acloud-dl.py", line 332, in
main()
File "acloud-dl.py", line 325, in main
acloud.course_download(path=options.output, quality=options.quality, download_all=options.download_all)
File "acloud-dl.py", line 241, in course_download
self.download_lectures_only(lecture_best=lecture_best, lecture_title=lecture_title, inner_index=lecture_index, lectures_count=lectures_count, lecture_assets=lecture_assets, lecture_subs=lecture_subs, filepath=filepath)
File "acloud-dl.py", line 174, in download_lectures_only
self.download_lectures(lecture_best=lecture_best, lecture_title=lecture_title, inner_index=inner_index, lectures_count=lectures_count, filepath=filepath)
File "acloud-dl.py", line 159, in download_lectures
retval = lecture_best.download(filepath=filepath, quiet=True, callback=self.show_progress)
File "C:\Users@@@@\Downloads\acloud-dl-master\acloud_shared.py", line 470, in download
os.rename(temp_filepath, filepath)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\@@@@\Downloads\acloud-dl-master\Red Hat Certified Specialist in Linux Diagnostics and Troubleshooting Exam Prep (RH342 )\07 Diagnose application issues\001 Identify library dependencies for third-party software.mp4.part' -> 'C:\Users\@@@@\Downloads\acloud-dl-master\Red Hat Certified Specialist in Linux Diagnostics and Troubleshooting Exam Prep (RH342 )\07 Diagnose application issues\001 Identify library dependencies for third-party software.mp4'
i cannot download paid courses ,only free courses are being downloaded
select course number between (1/75/all): 21
[*] : Course 'Go Serverless with a Graph Database'.
Traceback (most recent call last):on ..
File "acloud-dl.py", line 326, in <module>
main()
File "acloud-dl.py", line 319, in main
acloud.course_download(path=options.output, quality=options.quality, download_all=options.download_all)
File "acloud-dl.py", line 201, in course_download
course = course.get_course(keep_alive=download_all)
File "C:\Users\Administrator\Downloads\acloud-dl-master\acloud\_shared.py", line 88, in get_course
self._process_course(keep_alive=keep_alive)
File "C:\Users\Administrator\Downloads\acloud-dl-master\acloud\_internal.py", line 69, in _process_course
self._course = InternCloudGuruCourse(self._info, self._session, keep_alive)
File "C:\Users\Administrator\Downloads\acloud-dl-master\acloud\_internal.py", line 79, in __init__
super(InternCloudGuruCourse, self).__init__()
File "C:\Users\Administrator\Downloads\acloud-dl-master\acloud\_shared.py", line 109, in __init__
self._fetch_course()
File "C:\Users\Administrator\Downloads\acloud-dl-master\acloud\_internal.py", line 85, in _fetch_course
self._info = self._real_extract(course_id=course_id)
File "C:\Users\Administrator\Downloads\acloud-dl-master\acloud\_extract.py", line 356, in _real_extract
'lectures' : self._extract_lectures(lectures)
File "C:\Users\Administrator\Downloads\acloud-dl-master\acloud\_extract.py", line 289, in _extract_lectures
sources = self._extract_sources(sources)
File "C:\Users\Administrator\Downloads\acloud-dl-master\acloud\_extract.py", line 186, in _extract_sources
for entry in sources:
TypeError: 'NoneType' object is not iterable
[*] : Course 'AWS Certified Advanced Networking - Specialty 2020'.
Traceback (most recent call last):on ..
File "acloud-dl.py", line 326, in <module>
main()
File "acloud-dl.py", line 319, in main
acloud.course_download(path=options.output, quality=options.quality, download_all=options.download_all)
File "acloud-dl.py", line 201, in course_download
course = course.get_course(keep_alive=download_all)
File "C:\Users\Administrator\Downloads\acloud-dl-master\acloud\_shared.py", line 88, in get_course
self._process_course(keep_alive=keep_alive)
File "C:\Users\Administrator\Downloads\acloud-dl-master\acloud\_internal.py", line 69, in _process_course
self._course = InternCloudGuruCourse(self._info, self._session, keep_alive)
File "C:\Users\Administrator\Downloads\acloud-dl-master\acloud\_internal.py", line 79, in __init__
super(InternCloudGuruCourse, self).__init__()
File "C:\Users\Administrator\Downloads\acloud-dl-master\acloud\_shared.py", line 109, in __init__
self._fetch_course()
File "C:\Users\Administrator\Downloads\acloud-dl-master\acloud\_internal.py", line 85, in _fetch_course
self._info = self._real_extract(course_id=course_id)
File "C:\Users\Administrator\Downloads\acloud-dl-master\acloud\_extract.py", line 356, in _real_extract
'lectures' : self._extract_lectures(lectures)
File "C:\Users\Administrator\Downloads\acloud-dl-master\acloud\_extract.py", line 289, in _extract_lectures
sources = self._extract_sources(sources)
File "C:\Users\Administrator\Downloads\acloud-dl-master\acloud\_extract.py", line 186, in _extract_sources
for entry in sources:
TypeError: 'NoneType' object is not iterable
I tried to download AWS CCP and AWS SAA-C02 and in most of the cases it is showing "[-] : URLError : either your internet connection is not working or server aborted the request"
But for others its working fine.
when the filename has got characters like '(', : ')' it fails, error ...../\LPIC-1: System Administrator\01 Introduction.part'
OSError: [Errno 22] Invalid argument: '..../\LPIC-1: System Administrator\04 Exam 1 (102) - Linux installation and package management'
I am facing this problem on a Mac OS v10.14.6
Traceback (most recent call last): File "acloud-dl.py", line 256, in <module> main() File "acloud-dl.py", line 246, in main acloud.course_list_down() File "acloud-dl.py", line 51, in course_list_down lecture_assets = lecture.assets File "/Users/faizanbashir/Code/manhattan/tzarb/acloud-dl/acloud/_shared.py", line 191, in assets self._process_assets() File "/Users/faizanbashir/Code/manhattan/tzarb/acloud-dl/acloud/_internal.py", line 119, in _process_assets assets = [InternCloudGuruLectureAssets(z, self) for z in self._info['assets']] if self._assets_count > 0 else [] File "/Users/faizanbashir/Code/manhattan/tzarb/acloud-dl/acloud/_internal.py", line 147, in __init__ self._title = '{0:03d} {1!s}'.format(parent._lecture_index, assets.get('filename')) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 3: ordinal not in range(128)
Course Link: https://learn.acloud.guru/course/gke-beginner-to-pro/dashboard
The beginning of the course downloads fine except this chapter. Seems like an encoding issue.
For example: AWS Certified Solutions Architect Associate 2020
Here is the error:
Traceback (most recent call last):on ..
File "acloud-dl.py", line 326, in
main()
File "acloud-dl.py", line 319, in main
acloud.course_download(path=options.output, quality=options.quality, download_all=options.download_all)
File "acloud-dl.py", line 201, in course_download
course = course.get_course(keep_alive=download_all)
File "/home/sk/1TB/Tutorials/AWS/acloud-dl/acloud/_shared.py", line 88, in get_course
self._process_course(keep_alive=keep_alive)
File "/home/sk/1TB/Tutorials/AWS/acloud-dl/acloud/_internal.py", line 69, in _process_course
self._course = InternCloudGuruCourse(self._info, self._session, keep_alive)
File "/home/sk/1TB/Tutorials/AWS/acloud-dl/acloud/_internal.py", line 79, in init
super(InternCloudGuruCourse, self).init()
File "/home/sk/1TB/Tutorials/AWS/acloud-dl/acloud/_shared.py", line 109, in init
self._fetch_course()
File "/home/sk/1TB/Tutorials/AWS/acloud-dl/acloud/_internal.py", line 85, in _fetch_course
self._info = self._real_extract(course_id=course_id)
File "/home/sk/1TB/Tutorials/AWS/acloud-dl/acloud/_extract.py", line 356, in _real_extract
'lectures' : self._extract_lectures(lectures)
File "/home/sk/1TB/Tutorials/AWS/acloud-dl/acloud/_extract.py", line 289, in _extract_lectures
sources = self._extract_sources(sources)
File "/home/sk/1TB/Tutorials/AWS/acloud-dl/acloud/_extract.py", line 186, in _extract_sources
for entry in sources:
TypeError: 'NoneType' object is not iterable
Hi. I did everything follow by instruction.
Start a course, copy request header to the txt file, etc
But can't see any course, just:
[-] : Zero accessable courses: no courses found in your accessable courses.
[i] : Click 'START THIS COURSE' button to be able to get listed for download..
[i] : OR follow --> (https://github.com/r0oth3x49/acloud-dl#usage) for proper help..
I have tried all the steps in the readme to export the request headers from Firefox and save to a cookies.txt file however I keep getting this error:
[-] : Authorization error : it seems your authorization token is expired.
[i] : Login again & copy Request headers for a single request to file..
I have tried exporting the request headers from learn.acloud.guru which then spits out the error message immediately. If I try the request headers from split.io the script seems to pause for a bit and then eventually spits out the same error.
Am I doing something wrong?
I'm seeing something strange when trying to download the smallest-sized video files. I would suspect that the same video in 480p would be a fraction of the size of the same video in 720, but according to the program, using the -i
flag, the 720p video is smaller in size:
[*] : Lecture(s) (2).
- duration : 01:57.
- Lecture id : [REDACTED]
- video:mp4@1920x1080 1080p 12.07MB (Best)
- video:mp4@854x480 480p 18.45MB
- video:mp4@1280x720 720p 10.49MB
- file:pdf@pdf pdf 551.46KB
Is this true? Is there any way to verify this?
Hello,
When i launch the command it can't find any course, my cookie has been copied from chrome
python acloud-dl.py -c cookie.txt
__ __ ____
____ / / __ / / ____/ / /
/ __ `/ / / __ / / / / __ // __ / /
/ // / // / // / // / // // // / /
_,_/_//_/_,/_,/ _,/_/
Version : 0.1
Author : Nasir Khan (r0ot h3x49)
Github : https://github.com/r0oth3x49
[-] : Zero accessable courses: no courses found in your accessable courses.
[i] : Click 'START THIS COURSE' button to be able to get listed for download..
[i] : OR follow --> (https://github.com/r0oth3x49/acloud-dl#usage) for proper help..
python acloud-dl.py -c cookies.txt
===========================
[] : Course 'Python 3 Scripting for System Administrators'. <====
[] : Downloading course information .. \Traceback (most recent call last):
File "acloud-dl.py", line 332, in
main()
File "acloud-dl.py", line 325, in main
acloud.course_download(path=options.output, quality=options.quality, download_all=options.download_all)
File "acloud-dl.py", line 209, in course_download
course = course.get_course(keep_alive=download_all)
File "C:\acloud_shared.py", line 88, in get_course
self._process_course(keep_alive=keep_alive)
File "C:\acloud_internal.py", line 69, in _process_course
self._course = InternCloudGuruCourse(self._info, self._session, keep_alive)
File "C:\acloud_internal.py", line 79, in init
super(InternCloudGuruCourse, self).init()
File "C:\acloud_shared.py", line 109, in init
self._fetch_course()
File "C:\acloud_internal.py", line 85, in _fetch_course
self._info = self._real_extract(course_id=course_id)
File "C:\acloud_extract.py", line 504, in _real_extract
'lectures' : self._extract_lectures(lectures)
File "C:\acloud_extract.py", line 439, in _extract_lectures
streams = self._fetch_hls_streams_by_content_ids(contentid_list)
File "C:\acloud_extract.py", line 326, in _fetch_hls_streams_by_content_ids
_id = entry.get("contentId")
AttributeError: 'NoneType' object has no attribute 'get'
Hi,
I believe the below error is a false positive.
All videos downloaded, looks like that error is triggered when it tries to download the Quiz, which isn't a video.
[*] : Course 'AWS Certified Developer - Associate 2017'.
[-] : Authorization error : it seems your authorization token is expired.
[i] : Login again & copy Request headers for a single request to file..
Thanks
Thank author for your good tool.
I faced some Exceptions during downloading:
[*] : Downloading (006 matplotlib Stacked Area Charts.html)
[*] : Asset : '006 matplotlib Stacked Area Charts.html' (download skipped).
[-] : Exception : 'NoneType' object has no attribute 'strip'
[*] : Downloading asset(s)
[*] : Downloading (006 matplotlib Stacked Bar Charts.html)
[*] : Asset : '006 matplotlib Stacked Bar Charts.html' (download skipped).
[-] : Exception : 'NoneType' object has no attribute 'strip'```
Could you have a look.
I have a fix but you might want to implement your own.
freddy2659@4170082
For and issue file, see 'AWS Certified Advanced Networking - Specialty 2020\03 Configure Network Integration with Application Services\013 Maintaining Transport Layer Security All the Way to Your Container Using the Network Load Balanc....txt'
It gives a file not found error when using 'with open' in _shared.py
ABC-MacBook-Pro:acloud-dl def$ sudo python acloud-dl.py -c file_containing_cookie.txt
Password:
Traceback (most recent call last):
File "acloud-dl.py", line 7, in
import acloud
File "/Users/def/Desktop/acloud-dl/acloud/init.py", line 32, in
from ._acloud import courses
File "/Users/def/Desktop/acloud-dl/acloud/_acloud.py", line 26, in
from ._internal import InternCloudGuruCourse as CloudGuru
File "/Users/def/Desktop/acloud-dl/acloud/_internal.py", line 30, in
from ._extract import CloudGuru
File "/Users/def/Desktop/acloud-dl/acloud/_extract.py", line 45, in
from ._sanitize import (
File "/Users/def/Desktop/acloud-dl/acloud/_sanitize.py", line 10, in
from unidecode import unidecode
ImportError: No module named unidecode
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.