.. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_plot_download_providers.py: Download from Dropbox, Google Drive, and Github ----------------------------------------------- It's also possible to download files from Github, Google Drive, and Dropbox. While you can go through a little extra effort to get a direct download link, ``download`` will try to make things a little bit easier for you. .. code-block:: default from download import download import matplotlib.pyplot as plt import os.path as op import shutil as sh You can simply find the link to your content on GitHub and give it directly to Download. It will try to be smart about converting the link where necessary. .. code-block:: default url = "https://drive.google.com/file/d/0B8VZ4vaOYWZ3c3Y1c2ZQX01yREk/view?usp=sharing" path = download(url, "./downloaded/citation.png", replace=True) fig, ax = plt.subplots() im = plt.imread(path) ax.imshow(im) ax.set_axis_off() .. image:: /gallery/images/sphx_glr_plot_download_providers_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out Out: .. code-block:: none Downloading data from https://doc-0g-9c-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/5k38lin2cub2baoepd2f1h31d07bpljk/1587679275000/01085013503681928164/*/0B8VZ4vaOYWZ3c3Y1c2ZQX01yREk?e=download (35 kB) file_sizes: 0%| | 0.00/35.6k [00:00` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_download_providers.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_