dobomode / coursera-scraper

A lightweight Node.js app to fetch assets / videos for Coursera courses.
MIT License
43 stars 14 forks source link

TypeError: Readable.from is not a function Unable to download video. #4

Closed pietromalerba closed 3 years ago

pietromalerba commented 3 years ago

Hello! I'm trying to use your tool on a Mac 10.15.7

My npm version is ↪ npm --version (node:2042) ExperimentalWarning: The fs.promises API is experimental 7.18.1

This is what I get


   ___   ___    ___   _ __    __ _   _ __     ___   _ __ 
  / __| / __|  / __| | '__|  / _` | | '_ \   / _ \ | '__|
 | (__  \__ \ | (__  | |    | (_| | | |_) | |  __/ | |   
  \___| |___/  \___| |_|     \__,_| | .__/   \___| |_|   
                                    |_|                  

? Enter CAUTH value from Coursera cookie: (s2HJgNnFoZbUinsQ6syADRlHnixHsrrcBllcMRkHOqpCABBs8CAb9xOnnNSsn9pNIwRoBXzr1sdwAvV55zPHvg.pOJSOu7Yk0z1ie8DecSgMg.Pnm_-nj2sCCpXqnI_xCoWE
? Enter CAUTH value from Coursera cookie: s2HJgNnFoZbUinsQ6syADRlHnixHsrrcBllcMRkHOqpCABBs8CAb9xOnnNSsn9pNIwRoBXzr1sdwAvV55zPHvg.pOJSOu7Yk0z1ie8DecSgMg.Pnm_-nj2sCCpXqnI_xCoWEG
s5uxmNajNUwA2bZq1CxVRPfjq_djCG6lZuDj-qh1ZI9gihp7DhLU-QSzf89hP7B9akZsTtwPxI3ImnQJQQNojNRSUJLG69FhFnZ70YCfYxQ4Wsto5hlkzWEVQv4ehzp7pXmI4z1FG3UCBiSFUm2LEC7V02QOBo0iY1Bql-WqoiJjYN4
R0_8uf5WZHC5UHVfr3CPp8ZNKKG2u5F9XrDxQaDeU1hRmafnuAJi30C-Gdwf8mpebAADi6fEW1CmLgxPwuLoLe5RTg_pxLAKYfGepeLeM43P4v1q55qvVcn8c176KSgiJWOFnJZ2oLv0-gT6KrFi9WPs7239O4MK3lMPXh66PX19MNV
KVDga1dXSuMUiPuqCYRDj-ZTggTHQMwtabjE0RwhiFe-vyiklGwAZssD27soSbGLOBfB6HmwFHn
? Enter course ID (e.g. 'neural-networks-deep-learning'): foundations-user-experience-design

Course 'foundations-user-experience-design'

  Week #01

    Module #01 - Welcome to the Google UX Design Certificate
      Video #01 - Downloading 720p lecture video
TypeError: Readable.from is not a function
Unable to download video.

(node:2000) ExperimentalWarning: Readable[Symbol.asyncIterator] is an experimental feature. This feature could change at any time

Thanks for your help!

dobomode commented 3 years ago

Hi I am unable to replicate this issue: Can you try again and / or share more detail about your OS / system?

? Enter course ID (e.g. 'neural-networks-deep-learning'): foundations-user-experience-d
esign

Course 'foundations-user-experience-design'

  Week #01

    Module #01 - Welcome to the Google UX Design Certificate
      Video #01 - Downloading 720p lecture video
      Video #01 - Saved '01 - Lecture video (720p).mp4'

    Module #02 - Begin the Google UX Design Certificate
      Module does not have any downloadable assets.
      Module does not have any downloadable videos.

    Module #03 - Introduction to Course 1: Foundations of User Experience Design
      Video #01 - Downloading 720p lecture video
      Video #01 - Saved '01 - Lecture video (720p).mp4'

    Module #04 - Welcome to Course 1
      Module does not have any downloadable videos.
      Module does not have any downloadable assets.

    Module #05 - Program surveys
      Module does not have any downloadable assets.
      Module does not have any downloadable videos.

    Module #06 - Participant entry survey
      Module does not have any downloadable videos.
      Module does not have any downloadable assets.

    Module #07 - Helpful tips to get started
      Module does not have any downloadable assets.
      Module does not have any downloadable videos.

    Module #08 - Introduce yourself 
      Module does not have any downloadable videos.
      Module does not have any downloadable assets.

    Module #09 - Commit to completing the program
      Module does not have any downloadable assets.
      Module does not have any downloadable videos.

    Module #10 - Michael - Get started in UX design
      Video #01 - Downloading 720p lecture video
      Video #01 - Saved '01 - Lecture video (720p).mp4'

    Module #11 - The basics of user experience design
      Video #01 - Downloading 720p lecture video
...
pietromalerba commented 3 years ago

Hi @dobomode tnx for your answer. I just tried again with couple of courses but I got the same error


? Enter course ID (e.g. 'neural-networks-deep-learning'): ux-design-jobs

Course 'ux-design-jobs'

  Week #01

    Module #01 - Introduction to Course 7: Design a User Experience for Social Good and Prepare for Jobs
      Video #01 - Downloading 720p lecture video
TypeError: Readable.from is not a function
Unable to download video.

(node:2436) ExperimentalWarning: Readable[Symbol.asyncIterator] is an experimental feature. This feature could change at any time
pietro.malerba at MacBook-Pro-Pietro-Malerba in ~/w/coursera-scraper on main [✓]
↪ node index.js

   ___   ___    ___   _ __    __ _   _ __     ___   _ __ 
  / __| / __|  / __| | '__|  / _` | | '_ \   / _ \ | '__|
 | (__  \__ \ | (__  | |    | (_| | | |_) | |  __/ | |   
  \___| |___/  \___| |_|     \__,_| | .__/   \___| |_|   
                                    |_|                  

? Enter CAUTH value from Coursera cookie: (s2HJgNnFoZbUinsQ6syADRlHnixHsrrcBllcMRkHOqpCABBs8CAb9xOnnNSsn9pNIwRoBXzr1sdwAvV55zPHvg.pOJSOu7Yk0z1ie8DecSgMg.Pnm_-nj2sCCpXqnI_xCoWE
? Enter CAUTH value from Coursera cookie: s2HJgNnFoZbUinsQ6syADRlHnixHsrrcBllcMRkHOqpCABBs8CAb9xOnnNSsn9pNIwRoBXzr1sdwAvV55zPHvg.pOJSOu7Yk0z1ie8DecSgMg.Pnm_-nj2sCCpXqnI_xCoWEG
s5uxmNajNUwA2bZq1CxVRPfjq_djCG6lZuDj-qh1ZI9gihp7DhLU-QSzf89hP7B9akZsTtwPxI3ImnQJQQNojNRSUJLG69FhFnZ70YCfYxQ4Wsto5hlkzWEVQv4ehzp7pXmI4z1FG3UCBiSFUm2LEC7V02QOBo0iY1Bql-WqoiJjYN4
R0_8uf5WZHC5UHVfr3CPp8ZNKKG2u5F9XrDxQaDeU1hRmafnuAJi30C-Gdwf8mpebAADi6fEW1CmLgxPwuLoLe5RTg_pxLAKYfGepeLeM43P4v1q55qvVcn8c176KSgiJWOFnJZ2oLv0-gT6KrFi9WPs7239O4MK3lMPXh66PX19MNV
KVDga1dXSuMUiPuqCYRDj-ZTggTHQMwtabjE0RwhiFe-vyiklGwAZssD27soSbGLOBfB6HmwFHn
? Enter course ID (e.g. 'neural-networks-deep-learning'): foundations-user-experience-design

Course 'foundations-user-experience-design'

  Week #01

    Module #01 - Welcome to the Google UX Design Certificate
      Video #01 - Downloading 720p lecture video
TypeError: Readable.from is not a function
Unable to download video.

What kind of information I can provide about my system? I'm on a MacBook Pro (15-inch, 2018) with Catalina 10.15.7

dobomode commented 3 years ago

Which version of node are you using?

pietromalerba commented 3 years ago

v10.16.1

Il giorno gio 24 giu 2021 alle ore 12:32 Dobo Radichkov < @.***> ha scritto:

Which version of node are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dobomode/coursera-scraper/issues/4#issuecomment-867527607, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAK6Y4RZK2LXX7C26JHAT3TUMCS3ANCNFSM47HPFKWQ .

dobomode commented 3 years ago

Can you try updating to the latest and see if that fixes it? (I have v14.15.1 on my system)

pietromalerba commented 3 years ago

Yes! Updating node everything works correcly! Thanks!

dobomode commented 3 years ago

Glad it worked out. Closing the issue.