Skip to content

Commit

Permalink
acloud-dl version 0.1 for acloud.guru courses ..
Browse files Browse the repository at this point in the history
  • Loading branch information
r0oth3x49 committed Jul 12, 2018
0 parents commit 12f0e00
Show file tree
Hide file tree
Showing 19 changed files with 1,980 additions and 0 deletions.
95 changes: 95 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
cook.txt
acloud-dl.zip
jsons
pack.sublime-project
pack.sublime-workspace
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# IPython Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# dotenv
.env

# virtualenv
.venv/
venv/
ENV/

# Spyder project settings
.spyderproject

# Rope project settings
.ropeproject
3 changes: 3 additions & 0 deletions AUTHOR.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# *Nasir Khan (r0ot h3x49)*

- **https://r0oth3x49.herokuapp.com**
99 changes: 99 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@

# acloud-dl
**A cross-platform python based utility to download courses from acloud.guru for personal offline use.**

[![Capture.png](https://s26.postimg.cc/h8nxkvydl/Capture.png)](https://postimg.cc/image/nz4eublj9/)

## ***Features***

- Resume capability for a course video.
- List down course contents and video resolution, suggest the best resolution (option: `-i / --info`).
- Download lecture(s) requested resolution (option: `-q / --quality`).
- Download course to user requested path (option: `-o / --output`).
- Authentication using cookies (option: `-c / --cookies`).

## ***Extracting Cookies***

- Login to your acloud.guru account via browser.
- Once you are logged in right click on page the search for option called **Inspect Element** and click on that.
- Under that look for **Network Tab** and click on that. Under that **Network Tab** click on Requests type **XHR** .
- Now click on **Browse Courses** in the acloud.guru navbar and refresh the page you will see some requests under **Network Tab**.
- Right click on any of the Requests which links to **acloud.guru**. Simply copy **Request Headers** and save to text file.
- Done run the acloud-dl against that text file it will start downloading the course.

## ***Requirements***

- Python (2 or 3)
- Python `pip`
- Python module `requests`
- Python module `colorama`
- Python module `unidecode`
- Python module `six`
- Python module `requests[security]` or `pyOpenSSL`

## ***Module Installation***

pip install -r requirements.txt

## ***Tested on***

- Windows 7/8/8.1/10
- Kali linux (2017.2)
- Ubuntu-LTS (64-bit) (tested with super user)
- Mac OSX 10.9.5 (tested with super user)

## ***Download acloud-dl***

You can download the latest version of acloud-dl by cloning the GitHub repository.

git clone https://github.com/r0oth3x49/acloud-dl.git


## ***Usage***

***Download a course***

python acloud-dl.py -c file_containing_cookie.txt

***Download course with specific resolution***

python acloud-dl.py -c file_containing_cookie.txt -q 720

***Download course to a specific location***

python acloud-dl.py -c file_containing_cookie.txt -o "/path/to/directory/"

***Download course with specific resolution to a specific location***

python acloud-dl.py -c file_containing_cookie.txt -q 720 -o "/path/to/directory/"

***List down course information***

python acloud-dl.py -c file_containing_cookie.txt --info


## **Advanced Usage**

<pre><code>
Author: Nasir khan (<a href="http://r0oth3x49.herokuapp.com/">r0ot h3x49</a>)

usage: acloud-dl.py [-h] [-v] [-c] [-o] [-q] [-i]

A cross-platform python based utility to download courses from acloud.guru for
personal offline use.

General:
-h, --help Shows the help.
-v, --version Shows the version.

Authentication:
-c , --cookies Cookies to authenticate with.

Advance:
-o , --output Download to specific directory.
-q , --quality Download specific video quality.
-i, --info List all lectures with available resolution.

Example:
python acloud-dl.py -c cookies.txt
</code></pre>
Loading

0 comments on commit 12f0e00

Please sign in to comment.