educative.io-downloader
educative.io-downloader copied to clipboard
Add support to download multiple courses
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"
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);
}
}
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.