Giter VIP home page Giter VIP logo

krsite-dl's Introduction

CodeQL Dependency Review

If you like this project, please consider giving it a star! Thanks!

Table of Contents

Guides & Installation

Important

  1. Make sure you have python3 at least version 3.7 installed and executeable in your system's PATH.

  2. Clone this repository git clone -b master [email protected]:danrynr/krsite-dl.git

  3. Run pip3 install -r requirements.txt to install dependencies

Note

To update the script, you need to pull this repository again. You can also run git pull if you have git installed. Make sure to run another pip install -r requirements.txt to install any new dependencies.

Usage

User can add krsite-dl.conf file to set default download path. You can put the file in the following locations for automatic detection. This will get overridden by config path specified by -c option.

Windows

%APPDATA%\krsite-dl\krsite-dl.conf

%USERPROFILE%\krsite-dl\krsite-dl.conf

%USERPROFILE%\krsite-dl.conf

Linux

/etc/krsite-dl.conf

~/.config/krsite-dl/krsite-dl.conf

~/krsite-dl.conf

Note

The krsite-dl.conf file should contain the following:

[Settings]

base_dir = <path>

Basic Usage

python3 krsite_dl.py [-h] [-c CONFIG] [-a A] [-d DESTINATION] [-s] [--no-windows-filenames] [url ...]

python3 krsite-dl.py https://example.com/1/

python3 krsite-dl.py https://example.com/1/ https//example.com/2/

Download by specifying the download path

Alternatively, you can specify the download path by default by using krsite-dl.config file.

python3 krsite-dl.py https://example.com -d ~/Pictures/

Download by specifying the config path

python3 krsite-dl.py -c ~/krsite-dl.conf https://example.com

Downloading from multiple sites in a text file

python3 krsite-dl.py -a ~/Pictures/list.txt -d ~/Pictures

Selecting an image to download

This will prompt you a list of images to download

python3 krsite-dl.py https://example.com -s

Options

usage: krsite_dl.py [-h] [-c CONFIG] [-a A] [-d DESTINATION] [-s] [--no-windows-filenames] [url ...]

positional arguments:
  url                   valid news/blog url

options:
  -h, --help            show this help message and exit

utility:
  -c CONFIG, --config CONFIG
                        File path to your config file
  -a A                  Text file containing site urls
  -d DESTINATION, --destination DESTINATION
                        The destination path for the downloaded file.
  -s, --select          Select which images to download from each url.

misc:
  --no-windows-filenames
                        (default=False) krsite-dl will not sanitize filenames

Issues

Note

Please make an issue if you encounter any problems or just want to get more sites supported.

Site Name: www.example.com

Site URL (preferably the post page): www.example.com/post/1234

Disclaimer

This program is solely intended for the purpose of easily obtaining images from Korean websites where the images are publicly available and not behind any paywall or login. By using this program, you agree that you are responsible for your own actions and your action afterwards. The author and maintainer of this program is not responsible for any loss or damage caused by the use of this program.

krsite-dl's People

Contributors

danrynr avatar ilujinpark avatar luismfv 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.