Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ytsort

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ytsort

Arrange downloaded youtube videos

  • 1.4.0
  • PyPI
  • Socket score

Maintainers
1

YTSort

This program sorts the already downloaded youtube videos present in a folder by renaming them and adding serial number before their names.

Requirements

Youtube Data API v3 is required. Get it from here

Install

pipx install ytsort
or
pip install ytsort
Or upgrade by:
pipx upgrade ytsort
or
pip install --upgrade ytsort

Usage

Set Youtube API Key to the environment variable 'YOUTUBE_DATA_API_KEY' (for ease of use, but not required).

Execute:

ytsort
Usage: ytsort [OPTIONS]

Options:

  -c, --character TEXT    Character after serial.
  -z, --zero              Add zero before serial numbers to make them all of
                          equal length.
  -x, --nozero            Don't add zero before serial numbers.
  -d, --defaults          Change the default configurations and exit.
  -r, --remove-serial     Remove the serial numbers from the local files upto
                          the given character
  --help                  Show this message and exit.

Install from source

Poetry is required. For installation click here.

  1. Download the source and install the dependencies by running:

    git clone https://github.com/aqdasak/YTSort.git
    cd YTSort
    poetry install
    
  2. Not required but for ease of use

    a) Set Youtube API Key to the environment variable 'YOUTUBE_DATA_API_KEY'

    or

    b) edit the config.py:

    'api_key': os.environ.get('YOUTUBE_DATA_API_KEY'), to 'api_key': <Your Youtube API key>,

Run

In the source folder containing pyproject.toml

poetry shell

then cd into the folder containing youtube videos and execute:

ytsort

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc