Skip to main content

Provide some useful utils for tidying up your AV folder

Project description

AV Utils

Release

Provide some useful utils for tidying up your personal video folder

  • Extract designatio
  • Search folder (recursively)
  • Pull video info (title, actors etc.)
  • Download cover image
  • Rename video file

gjf

Environment

Python >= 3.4
BeautifulSoup4 >= 4.7.0
requests >= 2.21.0

Install

pip install avutil

Usage

# tidyup -h

Tidy up current dir

# tidyup

Usage in Python script

Import avutil:

import avutil

Search folder recursively to find videos:

folder = "StudyResource"
videos = avutil.Search_folder(folder)

Or you can specify the extension type of video

videos = Search_folder(folder, media_suffix={"mp4", "wmv", "avi", "mkv"})

Pull video info & download cover image

for video in videos:
    # Pull video info
    video.pull_info()
    print(video)

    # Download cover image (as video.title + .jpg)
    video.download_cover()

(Or proxy supported!)

for video in videos:
    # Pull video info using proxy
    video.pull_info(use_proxy=True, http_proxy="http://127.0.0.1:1087")
    print(video)
    # Download cover image using proxy (as video.title + .jpg)
    video.download_cover(use_proxy=True, http_proxy="http://127.0.0.1:1087")

Tidy up!

    # Tidy up (rename to video.designatio + video.actors)
    video.rename()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

avutil-1.0.6.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

avutil-1.0.6-py3-none-any.whl (18.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page