Skip to content

bython17/cwm-downloader-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

❗There is a new version of the app that provides the same functionality use: https://github.com/bython17/cwm-downloader from now on.

Code with Mosh Course Downloader

This project is created for people that bought a course from https://codewithmosh.com and want to download a single lecture or a whole course just using the command line

Installation

Clone the project

git clone https://github.com/bython17/cwm-downloader/

Go to the project directory

cd cwm-downloader

Add a credentials.py file

-> credentials.py is the file that contains the header and cookie dictionaries in order to simulate a "signed in" user.

To get the header and cookies dictionary

  1. Sign in to your account and go to an enrolled course that you have purchased

  2. Inspect the page and go the Networks tab

  3. Right click on the first request

  4. Copy the cURL of the request

copying the cURL of a request

  1. Go to https://curlconvertor.com and paste the cURL (that you copied)

  2. From the site copy the generated cookies and headers dictionary

copying the headers and cookies dictionaries

  1. Create a credentials.py file in the same directory as the project source

  2. Paste the contents you copied from the website

Dependencies

beautifulsoup4, tqdm, requests, colorama

python -m pip install beautifulsoup4 tqdm requests colorama

Running the project

You can either run the main.py script directly using python or compile the app to a binary. To do that:

Install pyinstaller

python -m pip install pyinstaller

Navigate to the project directory and run

pyinstaller --noconfirm --onefile --console main.py

Tip

Add the destination directory to PATH or move the binary to a directory that is already added to the PATH in order to access the command from wherever you want.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages