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 video url.
  • 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.

Take video url from Amazon Live product pages and download the video stream directly to your computer. url guide image

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 amazon_product_video_fetcher.core.extract_links import get_m3u8_links
from amazon_product_video_fetcher.core.download_video import download_video

github repo:

https://github.com/LiranBratt2121/amazon-product-video-fetcher

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.4.tar.gz (5.4 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.4-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for amazon_product_video_fetcher-0.0.4.tar.gz
Algorithm Hash digest
SHA256 af48e9966c7ec609c1dac0a5f7f53fff502e8ce58cdf684a5bcf62d1a7bc368d
MD5 b45aa8f7bad6654b84a559eae956cd7e
BLAKE2b-256 137c77f0bc74ca786cb1379809b1de8473aad5ea31a8b0b14758b4deab21eebc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for amazon_product_video_fetcher-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9399585e98d2ff690c9ce6a676a3c6d786f8243a5c5a3653276981b101ed3f8e
MD5 720a602bb958359768a5028f5df26b59
BLAKE2b-256 744e1188e97c02d22adff2edda484b23f4cc30199a2abd313285931e842a6662

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