Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Download MAGIC data

Project description

MAGIC Downloader

Download MAGIC data.


pip install git+


Download data

Download data files from

from MAGICDownloader import MAGICDownloader

base = ""
urls = [
    base + "v1/CrabNebula/2019_01_12/",
    base + "v1/CrabNebula/2019_01_13/",

downloader = MAGICDownloader("<user>", "<password>")
downloader.download_files(urls, "<output-directory>")

If a file is already downloaded, this file will be skipped.

Ignore some files

It's possible to ignore some files and not download them, based on string-content:

downloader.download_files(urls, "<output-directory>", ignore_pattern="ignore")

skips files where

"ignore" in filename

evaluates to True.

Reading delayed files

Delayed files are labeled with a truck: . These files will be skipped, if after 5 seconds the download does not start. Just try to download again later.

If you want to wait longer and don't skip:

downloader.download_files(urls, "<output-directory>", skip=False)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for MAGICDownloader, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size MAGICDownloader-0.1.2-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size MAGICDownloader-0.1.2.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page