npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

realfish-yc

v0.1.8

Published

Real Fish Youtube Video Crawling Module

Downloads

7

Readme

RealFish Youtube Crawling

Real Fish Youtube Crawling

  • pure crawling youtube video site and public api
  • this module do not use youtube/google api, don't worry google api quota

Install

npm i realfish-yc

Support features:

  • Get views, likes from youtube video web site
  • region and language support support languages are "KO", "EN", ISO 639-1, CAPITAL CASE support region are ISO 3166-1 alpha-2 that youtube support, CAPITAL CASE
  • this RYC don't use headless browser and selector library like cheerio or scrapy, just use ajax, so fast and light
  • this works on nodejs and electron
    • unfortunately, not support common modern browser because CORS or SOP error
  • Typescript support
  • async/await support

##FIX

  • 0.1.8: in case of English Crawling, Module can not extract rank from on trend super text tag
  • 0.1.8: in case of music category video, Module can not extract rank from on trend suport text tag

##ADD

  • 0.1.8 support ES language

Dependency:

  • axios
  • node js > 16.0.0

RYC APIS

  • API

    • crawling(videoid: string, gl: string, hl: string)
      • videoid: youtube video id
      • gl: region(national code) defualt "KR"
        • on trend(인급동) video ranks list is diffrent by gl
        • each region have each "on trend videos"
        • it affect "rank" property
      • hl: lanugage code default "KO", it's only support "KO", "EN", "ES"
        • if you use other language code, this module can not extract video list from youtube
  • Typescript

    youtube video crawling : return information videos

    import {crawling} from 'realfish-yc';
    const result = await crawling('QIccu1Ge-mc');
    import {crawling} from 'realfish-yc';
    const result = await crawling('QIccu1Ge-mc', 'US', 'EN');
  • Javascript

    const A = require('realfish-yc');
    
    A.crawling('wnlh9yoxBek').then(h => {
      console.log(h);
    });
    const A = require('realfish-yc');
    
    A.crawling('wnlh9yoxBek', 'US', 'EN').then(h => {
      console.log(h);
    });

    youtube video crawling : return information videos

    • crawling(videoid: string)
      • videoID: Youtube video id
  • Output

    • output data is json, gl=KR, hl=KO, korea, korean

      {
          videoId: 'QIccuFGe-mc',
          category: 'Comedy',
          title: 'this is title',
          views: 87572,
          publishDate: '2018-10-12',
          uploadDate: '2018-10-12',
          ownerChannelName: 'Real Fish Viewer',
          channelId: 'UCe323-y0YdvVSCwX3QbQb-A',
          ad: undefined,
          duration: 131448,
          paidOverlay: false,
          likes: 277,
          tags: [],
          rank: undefined,
          superText: '#인기급상승동영상'
      }
    • output data is json, gl=SG, hl=EN, singapole, english

      {
          videoId: 'UhQmAfzaw7c',
          category: 'Gaming',
          title: 'Dota 2 The International 2022 - Main Event - Final Day',
          views: 3407950,
          publishDate: '2022-10-30',
          uploadDate: '2022-10-30',
          ownerChannelName: 'dota2',
          channelId: 'UCTQKT5QqO3h7y32G8VzuySQ',
          ad: undefined,
          duration: 39937973,
          paidOverlay: false,
          likes: 23100,
          tags: [ 'Dota 2', 'Gaming' ],
          rank: 1,
          superText: '#1 ON TRENDING'
      }
  • properties

    • videoId: youtube video id
    • category: video category
    • title: video title
    • views: video current views count
    • publishDate: video published at
    • uploadDate: video upload at
    • ownerChannelName: this video owner channel name
    • channelId: this video owner channel id
    • ad: this video have ad
    • duration: this video duration, second
    • paidOverlay: this video have paidOverlay
    • likes: video likes count
    • tags: video tag, like "game", "mine craft"
    • rank: if video is in on trend(인급동), this propety show rank
    • superText: video supertext, this supert text show, videos category and features is written by author

Product

Copyright (c) 2022 year, Real Fish Inc Content Dev Solutions

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

made by RealFishDT