Skip to content

Implement video-info command #4

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

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

Conversation

aninhasalesp
Copy link

@aninhasalesp aninhasalesp commented Jun 30, 2024

Add Command to Extract YouTube Video Information

Overview

This Pull Request introduces the VideoInfo command, which extracts YouTube video information from a list of IDs or URLs (or from a CSV file containing URLs/IDs) and generates a CSV file with the video information.

Features

  • VideoInfo command to handle the extraction of YouTube video information.
  • Enhanced execute method to handle the end-to-end process of fetching video information and generating the output CSV.

Usage

To use the new VideoInfo command:

  1. Using IDs:
python cli.py --api_key <api_key> video-info --ids <id1> <id2> --output-file-path <output_path>
  1. Using URLs:
python cli.py --api_key <api_key> video-info --urls <url1> <url2> --output-file-path <output_path>
  1. Using an input CSV file:
python cli.py --api_key <api_key> video-info --input-file-path <input_csv_path> --output-file-path <output_path>

@aninhasalesp aninhasalesp marked this pull request as ready for review July 4, 2024 19:36
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 17, 2024 20:22
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