Coder Social home page Coder Social logo

pdsimage-downloader's Introduction

A python script to filter by filename and download PDS images.
GitHub release (latest by date) YouTube Channel Subscribers

Features

  • Running on windows and linux machines.
  • Filter on specific filenames with --name-contains option.
  • Choose the download directory with the --output-dir option.

Installation

In order to use this script we need to install bs4, lxml, requests and rich. We can do this with this command:

python3 -m pip install -r requirements.txt

or directly

pip install bs4 lxml requests rich

Usage

$ ./pdsimage_downloader.py  -h
pdsimage downloader v1.1 - by @podalirius_

usage: pdsimage_downloader.py [-h] -u URL [-n NAME_CONTAINS] [-D OUTPUT_DIR] [-v]

A python script to filter by filename and download PDS images.

optional arguments:
  -h, --help            show this help message and exit
  -u URL, --url URL     URL of the PDS image archive.
  -n NAME_CONTAINS, --name-contains NAME_CONTAINS
                        Filtering only files where the name contains this string.
  -D OUTPUT_DIR, --output-dir OUTPUT_DIR
                        Output directory where the images will be stored.
  -v, --verbose         Verbose mode. (default: False)

Example

./pdsimage_downloader.py --name-contains _DM_ -u https://pdsimage2.wr.usgs.gov/archive/mess-h-mdis-5-dem-elevation-v1.0/MESSDEM_1001/DEM/REGIONAL/IMG/

Demonstration

On Windows:

demo_windows.mp4

On Linux:

demo_linux.mp4

Contributing

Pull requests are welcome. Feel free to open an issue if you want to add other features.

pdsimage-downloader's People

Contributors

p0dalirius avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

5l1v3r1

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.