python小课离线版_一个跨平台基于python的工具,用于从udemy下载可离线使用的课程...

这是一个跨平台的Python工具,用于从Udemy下载课程供个人离线使用。支持多种特性,如视频质量选择、章节选择及登录认证等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c656173652d76302e352d627269676874677265656e2e7376673f7374796c653d666c61742d73717561726568747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f72306f7468337834392f7564656d792d646c2e7376673f7374796c653d666c61742d73717561726568747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f72306f7468337834392f7564656d792d646c2e7376673f7374796c653d666c61742d73717561726568747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f72306f7468337834392f7564656d792d646c2e7376673f7374796c653d666c61742d73717561726568747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f72306f7468337834392f7564656d792d646c2e7376673f7374796c653d666c61742d737175617265

udemy-dl

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

f84dc79af1b9652c9782d071d7061879.png

Before creating an issue, please do the following:

Use the GitHub issue search — check if the issue is already reported.

Check if the issue is already fixed — try to reproduce it using the latest master in the repository.

Make sure, that information you are about to report is related to this repository and not the one available on Python's repository, PyPi, Because this repository cannot be downloaded/installed via pip command.

Features

Resume capability for a course video.

Supports organization and individual udemy users both.

Save course direct download links to a text file (option: --save).

Cache credentials to a file and use it later for login purpose (option: --cache).

List down course contents and video resolution, suggest the best resolution (option: --info).

Download/skip all available subtitles for a video (options: --sub-only, --skip-sub).

Download specific chapter in a course (option: -c / --chapter).

Download specific lecture in a chapter (option: -l / --lecture).

Download specific subtitle for a lecture (option: -s / --sub-lang).

Download chapter(s) by providing range in a course (option: --chapter-start, --chapter-end).

Download lecture(s) by providing range in a chapter (option: --lecture-start, --lecture-end).

Download lecture(s) in requested resolution (option: -q / --quality).

Download course to user requested path (option: -o / --output).

Authentication using cookies (option: -k / --cookies).

Download/save lecture names (option: --names).

Download lectures containing unsafe unicode characters in title/name (option: --unsafe).

How to login with cookie

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 udemy-dl

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

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

Usage

Download a course

python udemy-dl.py COURSE_URL

Download course with specific resolution

python udemy-dl.py COURSE_URL -q 720

Download course to a specific location

python udemy-dl.py COURSE_URL -o "/path/to/directory/"

Download course with specific resolution to a specific location

python udemy-dl.py COURSE_URL -q 720 -o "/path/to/directory/"

Download specific chapter from a course

python udemy-dl.py COURSE_URL -c NUMBER

Download specific lecture from a chapter

python udemy-dl.py COURSE_URL -c NUMBER -l NUMBER

Download lecture(s) range from a specific chapter

python udemy-dl.py COURSE_URL -c NUMBER --lecture-start NUMBER --lecture-end NUMBER

Download chapter(s) range from a course

python udemy-dl.py COURSE_URL --chapter-start NUMBER --chapter-end NUMBER

Download specific lecture from chapter(s) range

python udemy-dl.py COURSE_URL --chapter-start NUMBER --chapter-end NUMBER --lecture NUMBER

Download lecture(s) range from chapter(s) range

python udemy-dl.py COURSE_URL --chapter-start NUMBER --chapter-end NUMBER --lecture-start NUMBER --lecture-end NUMBER

List down specific chapter from a course

python udemy-dl.py COURSE_URL -c NUMBER --info

List down specific lecture from a chapter

python udemy-dl.py COURSE_URL -c NUMBER -l NUMBER --info

Download specific subtite by using language code such as (en, es) if lang switch is not specified then default will be all subtitles

python udemy-dl.py COURSE_URL --sub-lang en

Advanced Usage

Author: Nasir khan (r0ot h3x49)

usage: udemy-dl.py [-h] [-v] [-u] [-p] [-k] [-o] [-q] [-c] [-l] [-s]

[--chapter-start] [--chapter-end] [--lecture-start]

[--lecture-end] [--save] [--info] [--cache] [--names]

[--unsafe] [--sub-only] [--skip-sub]

course

A cross-platform python based utility to download courses from udemy for

personal offline use.

positional arguments:

course Udemy course.

General:

-h, --help Shows the help.

-v, --version Shows the version.

Authentication:

-u , --username Username in udemy.

-p , --password Password of your account.

-k , --cookies Cookies to authenticate with.

Advance:

-o , --output Download to specific directory.

-q , --quality Download specific video quality.

-c , --chapter Download specific chapter from course.

-l , --lecture Download specific lecture from chapter(s).

-s , --sub-lang Download specific subtitle/caption (e.g:- en).

--chapter-start Download from specific position within course.

--chapter-end Download till specific position within course.

--lecture-start Download from specific position within chapter(s).

--lecture-end Download till specific position within chapter(s).

Others:

--save Do not download but save links to a file.

--info List all lectures with available resolution.

--cache Cache your credentials to use it later.

--names Do not download but save lecture names to file.

--unsafe Download all course with unsafe names.

--sub-only Download captions/subtitle only.

--skip-sub Download course but skip captions/subtitle.

Example:

python udemy-dl.py COURSE_URL

python udemy-dl.py COURSE_URL -k cookies.txt

python udemy-dl.py -u user@domain.com -p p4ssw0rd COURSE_URL

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值