Skip to content

A Crawler for extract download links of course videos from MaktabKhoone.org

Notifications You must be signed in to change notification settings

Amirmahdikahdouii/MaktabKhooneCrawler

Repository files navigation

MaktabKhoone.org video's download link collector

This robot will log in by your credentials into MaktabKhoone and try to extract the download links of given course.

Setup:

  1. Clone the repository from GitHub:
git clone https://github.com/Amirmahdikahdouii/MaktabKhooneCrawler.git
  1. Install requirements:
cd MaktabKhooneCrawler
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
  1. Setup .env:
cp .env.example .env
  1. Fill .env variables with your own credentials
  2. Run bot:
python main.py

Important

Before pass the course URL to the bot, make sure that you have signed up for the course, otherwise the bot will raise an excception. Note that links.txt and file_names.txt files, will be updated and the new links will append to the end of the files, so make sure after crawled completely, handle this by yourself.

Rename files after download:

Remember after extracting links, you will have 2 files:

  1. links.txt
  2. file_names.txt

You can use links.txt for downloading using IDM, and after downloading completed, you will need file_names.txt to rename downloaded files.

For rename files:

python rename_files.py

and for first input, give path where all the downloaded movies are there, then for second input give the path for file_names.txt

Example for inputs:

/home/user/Downloads/course/
/home/user/Desktop/MaktabKhooneCrawler/file_names.txt

About

A Crawler for extract download links of course videos from MaktabKhoone.org

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages