Skip to content

Conversation

@aninhasalesp
Copy link

@aninhasalesp aninhasalesp commented Jul 3, 2024

Add Command to Search YouTube Video Information

Overview

This Pull Request introduces the VideoSearch command, which searches and retrieves 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

  • VideoSearch Command: Handles the extraction of YouTube video information.
  • Enhanced Execute Method: Supports fetching information from both IDs and URLs.

Usage

To use the new VideoSearch command:

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

Additional Details

  • Output CSV File: The generated output CSV file will contain either simplified or full video information based on the --full-info flag.

@aninhasalesp aninhasalesp marked this pull request as ready for review July 5, 2024 00: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