Coder Social home page Coder Social logo

yt-scraper's People

Contributors

elbarkey avatar harrego avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

yt-scraper's Issues

Browser side & CORS policy

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.

hey bby

nice project u have there owo

Undefined

i only get the id and the url thats all :/
image

Cannot read property 'simpleText' of undefined

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.

TypeError: Cannot read property 'simpleText' of undefined

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?

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.