Comments (4)
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:
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.
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.
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.
@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)
- April is free, will the maintainer return? HOT 16
- v2 branch: regex: Missing characters (Windows) HOT 1
- Directory not found (path too long; Windows) HOT 10
- Immitating Pluralsight HOT 1
- Improve error handling
- Videos with resolution of 1024x768 cannot be downloaded HOT 4
- Option to ignore login for free courses
- Is there any way to download a specific range of videos ? HOT 5
- Feature request: resume after error/interruption HOT 7
- Pluralsight block my account HOT 22
- npm run login _ Not work HOT 1
- Script stopped if the title have slash character HOT 1
- Can i download one file in a video set HOT 2
- The two last videos are not downloaded of a course HOT 4
- brings an error when I type in npm run login HOT 1
- Subtitles .srt to be downloaded as well HOT 2
- Tab symbol error handling HOT 3
- Pluralsight offline player HOT 1
- Error: Protocol "blob:" not supported. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pluralsight-scraper.