harrego / yt-scraper Goto Github PK
View Code? Open in Web Editor NEWModern YouTube scraper capable of retrieving detailed video and channel info
Home Page: https://www.npmjs.com/package/yt-scraper
License: MIT License
Modern YouTube scraper capable of retrieving detailed video and channel info
Home Page: https://www.npmjs.com/package/yt-scraper
License: MIT License
snip moved
Hi,
Is there a solution for using this browser-side library?
Because there is a CORS policy concern.
Access to fetch at 'https://www.youtube.com/[...]' from origin 'http://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
nice project u have there owo
Hi, nice job.
Why is it not possible to scrape video list of the channel? It would be very practical.
Hi
Can u give an example how to use the options area in the module I tried a lot but couldn't get any :(
Pls Help
module only work when youtube url valid and live. if video deleted or invalid link then not work.
This error seems to happen because of the subscriber count.
yt-scraper\src\channel.js:118:77
I created a hotfix for this that is actually stupid because I removed the if statement around the subscriber count.
I uploaded the bad fix to npmjs named yt-scraper-badfix. I don't really have the knowledge to actually fix this. Sorry. I will delete the packet once I can get yours to work. I kept the original LICENSE file as requested.
Thank you for this module!
The youtube link that causes this crash (yet not the only) is this: https://www.youtube.com/watch?v=MwE2RSClYuE
Also, the error can be seen below:
(node:9180) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'simpleText' of undefined
at d:\Programming\NodeTesting\node_modules\yt-scraper\src\channel.js:118:77
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:9180) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:9180) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Hello there, I'm having trouble with this package.
Sometimes (more when I try to get info from popular songs) I get the error TypeError: Cannot read property 'simpleText' of undefined
Why? Is there any sort of protection maybe?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.