educative.io-downloader icon indicating copy to clipboard operation
educative.io-downloader copied to clipboard

Add support to download multiple courses

Open pallerana opened this issue 4 years ago • 2 comments

Is it possible to provide comma separated URLs for courseUrl and download all those at a time. something like "courseUrl": "https://www.educative.io/courses/docker-for-developers,https://www.educative.io/courses/web-application-software-architecture-101,https://www.educative.io/courses/introduction-microservice-principles-concepts"

pallerana avatar Jun 25 '20 16:06 pallerana

I think you can easily do that on your own, just change the code here in app.ts, but don't forget that the courseURL property now it's an array, I changed the name here to be lexically correct

{
  "courseUrls": ["https://www.educative.io/courses/machine-learning-for-software-engineers"],
}

change this code on app.ts line 48-50 I think

.
.
.
  } else {
    await downloadCourse(COURSE_URL);
  }

to be like this:

.
.
.
  } else {
       for (let url of COURSE_URLS) {
            await downloadCourse(url);
       }
  }

swiftMag3 avatar Jun 26 '20 00:06 swiftMag3

Thank you @swiftMag3 for pointing it out. We had this feature. But, it was removed in the path of developing some other features. You can submit a PR if you want.

shihabmridha avatar Jun 26 '20 09:06 shihabmridha