Metadata-Version: 2.1
Name: youtube_extract
Version: 1.3.1
Summary: Extract metadata for all videos from a youtube channel into a csv or xlsx file.
Home-page: https://github.com/dbeley/youtube_extract
Author: dbeley
Author-email: dbeley@protonmail.com
License: UNKNOWN
Description: # youtube_extract
        
        [![Build Status](https://travis-ci.com/dbeley/youtube_extract.svg?branch=master)](https://travis-ci.com/dbeley/youtube_extract)
        [![codecov](https://codecov.io/gh/dbeley/youtube_extract/branch/master/graph/badge.svg)](https://codecov.io/gh/dbeley/youtube_extract)
        
        Extracts metadata for all videos from a youtube channel and exports it into a csv or xlsx file.
        
        Be sure to read the csv file using the tab character `\t` as field separator in your spreadsheet software of choice.
        
        It's quite slow and unpredictable, expect ~400 seconds for extracting all videos metadata from a channel containing 400 videos.
        
        ### Fields extracted
        
        | Field          | Description                    |
        |----------------|--------------------------------|
        | author         | Channel Name                   |
        | channel_url    | Channel URL                    |
        | title          | Video Title                    |
        | webpage_url    | Video URL                      |
        | view_count     | View Count                     |
        | like_count     | Like Count                     |
        | dislike_count  | Dislike Count                  |
        | average_rating | Rating                         |
        | duration       | Duration in seconds            |
        | upload_date    | Upload Date in YYYYMMDD Format |
        | tags           | Tags                           |
        | categories     | Categories                     |
        | description    | Description                    |
        | thumbnail      | Thumbnail URL                  |
        | best_format    | Highest Format Available       |
        | filesize_bytes | Filesize in bytes              |
        
        
        ## Requirements
        
        - youtube-dl
        - pandas
        - openpyxl
        
        ## Installation
        
        ```
        pip install youtube_extract
        ```
        
        If you are an Archlinux user, you can install the AUR package [youtube_extract-git](https://aur.archlinux.org/packages/youtube_extract-git).
        
        ### Installation of the virtualenv (with pipenv)
        
        ```
        pipenv install
        ```
        
        ## Usage
        
        If installed :
        
        ```
        youtube_extract CHANNEL_URL
        # or xlsx format
        youtube_extract CHANNEL_URL -e xlsx
        ```
        
        Otherwise, in the directory containing the source code :
        
        ```
        python youtube_extract CHANNEL_URL
        # or xlsx format
        python youtube_extract CHANNEL_URL -e xlsx
        ```
        
        ## Help
        
        ```
        python youtube_extract.py -h
        ```
        
        ```
        usage: youtube_extract [-h] [--debug] [-e EXPORT_FORMAT] [channel_url]
        
        Extract metadata for all videos from a youtube channel into a csv or xlsx
        file.
        
        positional arguments:
          channel_url           Youtube channel url.
        
        optional arguments:
          -h, --help            show this help message and exit
          --debug               Display debugging information.
          -e EXPORT_FORMAT, --export_format EXPORT_FORMAT
                                Export format (csv or xlsx). Default : csv
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: POSIX :: Linux
Description-Content-Type: text/markdown
