DrKain / scrape-youtube

A lightning fast package to scrape YouTube search results
MIT License
112 stars 30 forks source link

Advanced debugger #35

Closed DrKain closed 3 years ago

DrKain commented 3 years ago

Added an advanced debugger that will, when enabled, write 3 files per search to a directory of choice.

Some issues (#22 #31 #34) require me to see the raw HTML of the page to figure out what's going wrong, this should make things easier in the future.

It can be enabled using:

youtube.debug = true; // Enable regular debugging
youtube.debugger.enabled = true; // Enable debug dumps
youtube.debugger.setDirectory('path/to/somewhere'); // Directory to write the dumps