Skip to content

Implement video-search command #5

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 57 commits into
base: develop
Choose a base branch
from

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