Giter Site home page Giter Site logo

nptel-miner's Introduction

NPTEL Video Miner


This application is designed to download videos from NPTEL course website [http://nptel.ac.in/]

Dependencies

  • NodeJS

Configurations

```json
{                 
    "max_parallel_downloads": 2,
    "download_path": "./downloads",
    "downloads": [
      "Artificial Intelligence"
    ]
}
```

The application has three configurations -

  • max_parallel_downloads : The number of parallel downloads, defaults to 1 if not mentioned
  • download_path : This tells the application where to download the course videos and where the config files are located for the course download. The video files will be downloaded under a directory named video, inside this directory.
  • downloads: This is an array containing the exact name of the directory inside the download_path, which you want to download. There may be many directories (courses) in the download_path, however, only those will be downloaded that you define in this parameter.

Setup new course for download

Follow these steps to download course videos

  • Create a directory under download_path
  • Create a config.json in the course directory
  • Mention the course directory name in the downloads array of the project's config.json (as defined above)

The config.json file should have the following parameters -

```json
{
    "name": "Artificial Intelligence",
    "links": {
      "download_link": "http://npteldownloads.iitm.ac.in/downloads_mp4/106106126/mod01lec{0}.mp4"
    },
    "download_titles": [
        "Artificial Intelligence: Introduction",
        "Introduction to AI"
        ...
    ]
}
```
  • download_link : The download link should be abstract with one parameter {0} which will increment automatically
  • download_titles : The titles of the video files

NOTE:

This application will only download video files serially based on the download_titles list, hence you should add the names properly. There is a one-to-one mapping between the title and download link.

For instance, from the above example the link between the titles and the download URLs are as follows

Artificial Intelligence: Introduction -> http://npteldownloads.iitm.ac.in/downloads_mp4/106106126/mod01lec0.mp4

Introduction to AI -> http://npteldownloads.iitm.ac.in/downloads_mp4/106106126/mod01lec1.mp4

NOTE:

The file names will be based on the download_titles, but will be normalized. The following characters will be replaced by underscore "_"

? : / , <space>, <tab>

How to run this application?

The most basic way to run the application is as follows -

```shell
node nptel.js
```

OR

```shell
npm start
```

License

MIT

Contact Me

nptel-miner's People

Contributors

sohailalam2 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.