Giter Club home page Giter Club logo

Comments (3)

xenova avatar xenova commented on June 19, 2024 1

Hi there. The correct usage is as follows:

chat_downloader https://www.youtube.com/watch?v=5qap5aO4i9A --message_groups "messages superchat"

Note this uses --message_groups. If you want more control, you can specify --message_types, for example:

chat_downloader https://www.youtube.com/watch?v=n5aQeLwwEns --message_types "text_message paid_message membership"

This is my fault as I am still busy writing the documentation. The keys are message groups and the elements in the lists are message types. So, the message group superchat contains membership_item, paid_message and paid_sticker. Here are the different message groups and message types for YouTube in the meantime.

_MESSAGE_GROUPS = {
    'messages': [
        'text_message'  # normal message
    ],
    'superchat': [
        # superchat messages which appear in chat
        'membership_item',
        'paid_message',
        'paid_sticker',
    ],
    'tickers': [
        # superchat messages which appear ticker (at the top)
        'ticker_paid_sticker_item',
        'ticker_paid_message_item',
        'ticker_sponsor_item',
    ],
    'banners': [
        'banner',
        'banner_header'
    ],

    'donations': [
        'donation_announcement'
    ],
    'engagement': [
        # message saying live chat replay is on
        'viewer_engagement_message',
    ],
    'purchases': [
        'purchased_product_message'  # product purchased
    ],

    'mode_changes': [
        'mode_change_message'  # e.g. slow mode enabled
    ],

    'deleted': [
        'deleted_message'
    ],
    'bans': [
        'ban_user'
    ],

    'placeholder': [
        'placeholder_item'  # placeholder
    ]
}

from chat-downloader.

artiction avatar artiction commented on June 19, 2024

It's alright, I mean everyone here depends on your script in the first place. So thank you for making this.
Also, I prioritize text messages, although having both superchats and members are also nice. Thanks for the quick reply!

from chat-downloader.

xenova avatar xenova commented on June 19, 2024

@artiction I wrote a short guide on how to use message groups and types: https://github.com/xenova/chat-downloader/wiki/Message-groups-and-types

Hope it helps!

from chat-downloader.

Related Issues (20)

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.