Convert Figma logo to code with AI

xifangczy logocat-catch

猫抓 浏览器资源嗅探扩展 / cat-catch Browser Resource Sniffing Extension

10,360
938
10,360
344

Top Related Projects

92,997

A feature-rich command-line audio/video downloader

131,863

Command-line program to download videos from YouTube.com and other video sites

50,351

:arrow_double_down: Dumb downloader that scrapes the web

27,951

👾 Fast and simple video download library and CLI tool written in Go

Command-line program to download image galleries and collections from several image hosting sites

Quick Overview

Cat Catch is an open-source video downloader and parser for various Chinese video platforms. It supports downloading videos from popular sites like Bilibili, Douyin, and Kuaishou, among others. The project aims to provide a user-friendly interface for downloading and managing video content from these platforms.

Pros

  • Supports multiple popular Chinese video platforms
  • User-friendly interface for easy video downloading
  • Regular updates and maintenance
  • Open-source, allowing for community contributions and customization

Cons

  • Limited to Chinese video platforms, not supporting international sites
  • May face potential legal issues due to copyright concerns
  • Requires users to have some technical knowledge for setup and usage
  • Performance may vary depending on the specific video platform and network conditions

Getting Started

  1. Clone the repository:

    git clone https://github.com/xifangczy/cat-catch.git
    
  2. Install dependencies:

    cd cat-catch
    npm install
    
  3. Run the application:

    npm start
    
  4. Access the application through your web browser at http://localhost:3000

  5. Enter the URL of the video you want to download and follow the on-screen instructions.

Competitor Comparisons

92,997

A feature-rich command-line audio/video downloader

Pros of yt-dlp

  • More comprehensive support for various video platforms and formats
  • Actively maintained with frequent updates and bug fixes
  • Extensive documentation and command-line options for advanced users

Cons of yt-dlp

  • Steeper learning curve for beginners due to command-line interface
  • Requires manual installation and setup, which may be challenging for some users

Code Comparison

yt-dlp (Python):

import yt_dlp

ydl_opts = {}
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
    ydl.download(['https://www.youtube.com/watch?v=dQw4w9WgXcQ'])

cat-catch (JavaScript):

const CatCatch = require('cat-catch');

const catCatch = new CatCatch();
catCatch.download('https://www.youtube.com/watch?v=dQw4w9WgXcQ');

Both projects aim to download videos from various platforms, but yt-dlp offers more extensive features and platform support. cat-catch provides a simpler interface for basic video downloading, making it more accessible for beginners. yt-dlp is better suited for advanced users and those requiring support for a wide range of platforms, while cat-catch may be preferable for users seeking a straightforward solution for common video sites.

131,863

Command-line program to download videos from YouTube.com and other video sites

Pros of youtube-dl

  • Supports a vast array of websites and platforms for video downloading
  • Highly customizable with numerous options for video quality, format, and metadata extraction
  • Active development with frequent updates and bug fixes

Cons of youtube-dl

  • Command-line interface may be less user-friendly for some users
  • Requires additional software (e.g., FFmpeg) for certain functionalities
  • Can be slower for bulk downloads compared to specialized tools

Code Comparison

youtube-dl:

ydl_opts = {
    'format': 'bestaudio/best',
    'postprocessors': [{
        'key': 'FFmpegExtractAudio',
        'preferredcodec': 'mp3',
        'preferredquality': '192',
    }],
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
    ydl.download(['https://www.youtube.com/watch?v=dQw4w9WgXcQ'])

cat-catch:

const CatCatch = require('cat-catch');
const catCatch = new CatCatch();

catCatch.getVideoInfo('https://www.bilibili.com/video/BV1xx411c7mD')
  .then(info => console.log(info))
  .catch(err => console.error(err));

Note: cat-catch appears to be primarily focused on Chinese video platforms, while youtube-dl has broader support for international sites. The code examples demonstrate the different approaches and use cases for each tool.

50,351

:arrow_double_down: Dumb downloader that scrapes the web

Pros of you-get

  • Supports a wider range of websites and platforms for video downloading
  • More actively maintained with frequent updates and bug fixes
  • Offers additional features like playlist downloading and proxy support

Cons of you-get

  • Larger codebase and more complex installation process
  • May have slower download speeds for some sources
  • Requires more system resources due to its comprehensive feature set

Code Comparison

you-get:

def download_urls(urls, **kwargs):
    for url in urls:
        download(url, **kwargs)

def download(url, **kwargs):
    try:
        m, url = match1(url, [(item[0], item[1]) for item in site_info])
        site = import_module(m)
        site.download(url, **kwargs)
    except Exception as e:
        log.e(str(e))

cat-catch:

async function getVideoInfo(url) {
  const { data } = await axios.get(url);
  const $ = cheerio.load(data);
  const videoUrl = $('video source').attr('src');
  return { videoUrl };
}

async function downloadVideo(url, outputPath) {
  const { videoUrl } = await getVideoInfo(url);
  const writer = fs.createWriteStream(outputPath);
  const response = await axios.get(videoUrl, { responseType: 'stream' });
  response.data.pipe(writer);
}

The code comparison shows that you-get uses a modular approach with site-specific modules, while cat-catch employs a more straightforward method using cheerio for HTML parsing and axios for HTTP requests. you-get's structure allows for easier expansion to support new sites, while cat-catch's approach is simpler but may require more modifications for different platforms.

27,951

👾 Fast and simple video download library and CLI tool written in Go

Pros of lux

  • Written in Go, potentially offering better performance and cross-platform compatibility
  • Supports a wider range of video platforms and websites
  • More actively maintained with frequent updates and contributions

Cons of lux

  • More complex setup and usage compared to cat-catch
  • Requires Go installation and compilation
  • May have a steeper learning curve for non-technical users

Code comparison

cat-catch (JavaScript):

async function getVideoInfo(url) {
  const res = await fetch(url);
  const html = await res.text();
  // Parse HTML and extract video information
}

lux (Go):

func (e *Extractor) Extract(url string) ([]*types.Data, error) {
    html, err := request.Get(url, url, nil)
    if err != nil {
        return nil, err
    }
    // Parse HTML and extract video information
}

Both projects aim to extract video information from websites, but they differ in implementation language and approach. cat-catch focuses on simplicity and ease of use, while lux offers more comprehensive features and platform support. The code snippets show similar high-level logic for fetching and parsing HTML, but lux's implementation is more robust and structured due to Go's type system and error handling.

Command-line program to download image galleries and collections from several image hosting sites

Pros of gallery-dl

  • More comprehensive support for a wide range of websites and platforms
  • Actively maintained with frequent updates and bug fixes
  • Extensive documentation and command-line options for advanced users

Cons of gallery-dl

  • Steeper learning curve due to more complex usage and configuration
  • Requires Python installation, which may be less convenient for some users

Code Comparison

gallery-dl:

from gallery_dl import config, job
config.load()
job.DownloadJob(url).run()

cat-catch:

const CatCatch = require('cat-catch');
const catCatch = new CatCatch();
catCatch.download(url);

Summary

gallery-dl is a more powerful and versatile tool for downloading media from various websites, offering extensive customization options and regular updates. However, it may be more challenging for beginners to use compared to cat-catch.

cat-catch, on the other hand, provides a simpler and more user-friendly approach, especially for those familiar with JavaScript. It may be easier to integrate into existing projects but offers less flexibility and supports fewer platforms than gallery-dl.

The choice between the two depends on the user's specific needs, programming experience, and the range of websites they intend to download from.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

[中文] | [English]

📑简介

猫抓(cat-catch) 资源嗅探扩展,能够帮你筛选列出当前页面的资源。

📖安装地址

🐴Chrome

https://chrome.google.com/webstore/detail/jfedfbgedapdagkghmgibemcoggfppbb

🦄Edge

https://microsoftedge.microsoft.com/addons/detail/oohmdefbjalncfplafanlagojlakmjci

🦊Firefox

https://addons.mozilla.org/addon/cat-catch/ 😂需非国区IP访问

💔猫抓是开源的,任何人都可以下载修改上架到应用商店,已经有不少加上广告代码后上架的伪猫抓,请注意自己的数据安全。所有安装地址以github和用户文档为准。

📒用户文档

https://o2bmm.gitbook.io/cat-catch/ ( 国内用户无法访问gitbook 尝试 https://cat-catch.bmmmd.com/ )

🌏翻译

gitlocalized

📘Chrome/Edge等Chromium内核浏览器 源码加载方法

  1. https://github.com/xifangczy/cat-catch/releases 下载 Source code 并解压。
  2. 扩展管理页面 打开 "开发者模式"。
  3. 点击 "加载已解压的扩展程序" 选中你解压好的目录即可。

📚兼容性说明

1.0.17版本之后需要Chromium内核版本93以上。 低于93请使用1.0.16版本。 要体验完整功能,请使用104版本以上。

🔍界面

popup界面 m3u8解析器界面

🤚🏻免责

扩展是通用嗅探工具和浏览器DevTools功能一致,没有针对任何一家网站进行解密操作,用户下载任何内容与扩展无关,请注意下载资源的权限和版权。

🔒隐私政策

扩展不会收集任何个人信息,不包含任何跟踪器。

💖鸣谢

📜License

GPL-3.0 license

1.0版 使用 MIT许可

2.0版 更改为GPL v3许可

为了资源嗅探扩展有良好发展,希望使用猫抓源码的扩展仍然保持开源。