A Basic Media Downloading Tool Written in Deno

media-downloader

image

A basic media downloading tool written in Deno. Pass in a URL, select which filetypes you’re interested in, and it will scrape the HTML and download all the linked files that match the filter.

Preqequisites

Usage

  • -u - (required) the URL to scrape for media links
  • -t - (optional) the filetype(s) to download; defaults to several common image formats

Example

deno run --allow-net --allow-write --allow-read --unstable media_downloader.ts -t jpg -t png -u https://dribbble.com/shots

Install

  1. Clone this repo
  2. Run this command
deno install --allow-net --allow-write --allow-read --unstable --name media-downloader main.ts
  1. Then, use it like so:
media-downloader -u https://example.com

Supported Sites

This tool has been confirmed to work with imageboards [e.g., 4chan) and thisvid. Feel free to open a PR to contribute more sites to this list.

Roadmap

  • -p flag for specifying custom output path
  • Support <img> tags
  • Multiple parallel requests

Download Details:

Author: tomholford

GitHub: https://github.com/tomholford/media-downloader

#deno #nodejs #node #javascript

A Basic Media Downloading Tool Written in Deno
10.00 GEEK