Skip to main content

A Small tool to Extract and Download m3u8 videos

Project description

Amazon Video Downloader (m3u8)

A simple Python tool to download videos from Amazon Live or other pages serving HLS streams (.m3u8).
It supports both CLI and GUI modes, allowing you to extract the correct video stream and save it locally.


Features

  • Automatically fetches .m3u8 links from a page.
  • Option to select which video to download if multiple streams exist.
  • Downloads video using FFmpeg, supporting all resolutions.
  • Simple GUI using Tkinter with folder selection and status updates.
  • CLI mode for quick downloads.

Requirements

  • Python 3.10+
  • Playwright
  • FFmpeg installed and added to your system PATH.

Install Python dependencies:

pip install playwright
python -m playwright install

Usage

CLI:

python main.py --url "PAGE_URL" --output "VIDEO_PATH.mp4"

Note: The first video in the HLS playlist is probably the one you are looking for.

GUI:

python main.py --gui

steps:

  1. Enter the page URL.
  2. Choose a folder and filename.
  3. Click Download and wait for completion.
  4. Open folder button becomes active once the video is saved.

Note: The GUI will automatically select the first video in the HLS playlist.

In Code:

from core.extract_links import get_m3u8_links
from core.download_video import download_video

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

amazon_product_video_fetcher-0.0.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

amazon_product_video_fetcher-0.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file amazon_product_video_fetcher-0.0.1.tar.gz.

File metadata

File hashes

Hashes for amazon_product_video_fetcher-0.0.1.tar.gz
Algorithm Hash digest
SHA256 997f8d4ac620b6736c54199b5c7f8f8eda6980e271106b7b5fdf5eea4afb48e1
MD5 3bd50d39efdc36cba490f5ab34c82ad1
BLAKE2b-256 ddaf420c89b80a52209ac9270a7e71893af0989ac8654a57a437a79000d21089

See more details on using hashes here.

File details

Details for the file amazon_product_video_fetcher-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for amazon_product_video_fetcher-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b5f9d222817db1d4407cad95a6d8efb7278a670d0df5699d80dfdbecc9a1d54
MD5 a54067f36d73b1d4247293f4afa92e6e
BLAKE2b-256 8420ad406d45d6cba432ac105c2d1e77324dd063d21d12242c95c6362a4d651c

See more details on using hashes here.

Supported by

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