Socket
Socket
Sign inDemoInstall

yt-trending-scraper

Package Overview
Dependencies
2
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2 to 1.1.3

2

package.json
{
"name": "yt-trending-scraper",
"version": "1.1.2",
"version": "1.1.3",
"description": "Identifies the currently trending videos on YouTube and returns all trending site information about every video without accessing the YouTube API.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -112,3 +112,3 @@ const requester = require("./TrendingRequester")

video_entry.authorUrl = videoRenderer.longBylineText.runs[0].navigationEndpoint.commandMetadata.webCommandMetadata.url;
video_entry.viewCount = this.calculate_view_count(videoRenderer.viewCountText.simpleText);
video_entry.viewCount = ('viewCountText' in videoRenderer) ? this.calculate_view_count(videoRenderer.viewCountText.simpleText) : 0;
video_entry.publishedText = videoRenderer.publishedTimeText.simpleText;

@@ -115,0 +115,0 @@ video_entry.published = this.calculate_published(video_entry.publishedText, currentTime);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc