Giter Site home page Giter Site logo

media-downloader's Introduction

media-downloader

image

A basic media downloading tool written in Typescript for 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.

Prerequisites

Usage

  • -u - (required) the URL to scrape for media links
  • -p - (optional) the output path for writing files; defaults to ./output/
  • -t - (optional) the filetype(s) to download; defaults to several common image formats
  • -R - (optional) after finishing downloading, scan the output directory and remove duplicates

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

macOS

You will also need to add the deno executables path to your bash_profile:

export PATH="/Users/[your username]/.deno/bin:$PATH"

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

  • Support <img> tags
  • Multiple parallel requests
  • progress bar
  • CI
  • release binaries
  • tests

media-downloader's People

Contributors

tomholford avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.