Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement video_livechat command #7

Open
wants to merge 67 commits into
base: develop
Choose a base branch
from

Conversation

aninhasalesp
Copy link

Add Command to Fetch Live Chat Messages from YouTube Video

Overview

This PR introduces the VideoLiveChat command, which fetches live chat messages from a YouTube video using a video ID and generates a CSV file with detailed chat message information.

Features

  • Command Implementation: video_livechat command to handle the extraction of live chat messages from YouTube videos.

  • Command Execution: Enhanced execute method to handle the end-to-end process of fetching live chat messages and generating the output CSV.

Usage

To use the new VideoLiveChat command:

  1. Using the Video ID:
python cli.py --api_key <api_key> video-livechat --id <video_id> --output-file-path <output_path> --expand-emojis True
  1. These are other ways to run the VideoLiveChat command:

The command is designed to fetch live chat messages associated with a provided video ID.

python cli.py --api_key <api_key> video-livechat --id <video_id>

@aninhasalesp aninhasalesp marked this pull request as ready for review July 5, 2024 01:33
turicas and others added 29 commits September 12, 2024 17:15
- Implemented  method to convert a list of dictionaries into a CSV file or string;
…RLs or a CSV file containing URLs;

- Added commands directory structure
fix: show error with parser if not in debug mode
- Changed file path passing to use  from  in the  method;
…and return a string;

- Added logic to convert values retrieved from the CSV file to strings before appending them to the data list;
…om URLs, usernames, or CSV files containing them;

- Add  method to filter channel information based on specified columns;
- Define  method to handle the command logic, including reading input, fetching channel data, and saving to CSV;
- Support for various input methods including direct URLs/usernames and file paths for CSV input;
- Support for specifying output CSV file path and columns to include in the output.
- Add update channel_info file;
- fix test_base
@aninhasalesp aninhasalesp changed the base branch from feature/cli to develop September 18, 2024 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants