Coder Social home page Coder Social logo

Comments (4)

Aryangh1379 avatar Aryangh1379 commented on August 16, 2024 1

Whoopsy. The regex only matches - and [a-z], my bad! I totally forgot about numbers. Fix coming soon.

If you want to do it yourself and PR it, update this line:

https://github.com/knyzorg/pluralsight-scraper/blob/8388d58bfdb760d55f50e60ed852fbe063546ea4/index.js#L10

To include the [0-9] pattern as well.

return /library\/courses\/([a-z\-0-9]+)/gi.exec(url)[1];
Is this True ? i'm not good at programming

from pluralsight-scraper.

vezaynk avatar vezaynk commented on August 16, 2024

Whoopsy. The regex only matches - and [a-z], my bad! I totally forgot about numbers. Fix coming soon.

If you want to do it yourself and PR it, update this line: https://github.com/knyzorg/pluralsight-scraper/blob/8388d58bfdb760d55f50e60ed852fbe063546ea4/index.js#L10

To include the [0-9] pattern as well.

from pluralsight-scraper.

cicerothoma avatar cicerothoma commented on August 16, 2024

Hi Dear, I also had trouble using the script on my windows machine. When I run your own example, it works but when I change the URL it no longer works
`C:\Users\COLLINS\projects\pluralsight\pluralsight-scraper>npm run get -- "https://app.pluralsight.com/library/courses/rust-fundamentals/table-of-contents"

[email protected] get C:\Users\COLLINS\projects\pluralsight\pluralsight-scraper
node index.js get "https://app.pluralsight.com/library/courses/rust-fundamentals/table-of-contents"

Downloading course: rust-fundamentals
Retrieving metadata for: 1. Course Overview
Downloading video file for: 1. Course Overview.mp4
Terminate batch job (Y/N)? y

C:\Users\COLLINS\projects\pluralsight\pluralsight-scraper>npm run get -- "https://app.pluralsight.com/library/courses/math-for-programmers/table-of-contents"

[email protected] get C:\Users\COLLINS\projects\pluralsight\pluralsight-scraper
node index.js get "https://app.pluralsight.com/library/courses/math-for-programmers/table-of-contents"

Downloading course: math-for-programmers
Retrieving metadata for: 1. Welcome
Something went wrong. Double check the URL and try logging in again.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] get: node index.js get "https://app.pluralsight.com/library/courses/math-for-programmers/table-of-contents"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] get script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\COLLINS\AppData\Roaming\npm-cache_logs\2020-04-11T20_09_06_202Z-debug.log`

from pluralsight-scraper.

vezaynk avatar vezaynk commented on August 16, 2024

@cicerothoma Your problem is likely different. I will investigate another time, but it looks like a suspension.

Improved error handling to be tracked in #17

from pluralsight-scraper.

Related Issues (20)

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.