{"repo":"mufidu/markdown-image-downloader","free":true,"listed":false,"github":"https://github.com/mufidu/markdown-image-downloader","clone":"git clone https://github.com/mufidu/markdown-image-downloader.git","description":"Python package to download all images in markdown files and rename the links to point to the local files.","language":"Python","stars":22,"topics":["markdown","python"],"license":"MIT","category":"media-processing","readme_excerpt":"Markdown Image Downloader A Python package that automatically downloads and manages images referenced in markdown files, storing them locally in an attachments folder. This script is particularly useful for maintaining local copies of images in markdown documentation and ensuring consistent image availability. Or just for Obsidian's Readwise export, which I made this for. Previously hosted on GitHub Gist. Moved here to allow for easier maintenance and contributions, if any. Also published to PyPI for convenience. Requirements Installation Install directly from PyPI using pip: Usage Run the package from the command line, providing the folder containing your markdown files as an argument: Example This will: 1. Scan all markdown files in the ../Readwise/Articles folder 2. Download any images referenced in the markdown files 3. Store them in ../Readwise/Articles/ attachments 4. Update the markdown files to reference the local copies Features - Uses custom HTTP headers to avoid download blocks - Falls back to system curl to bypass Cloudflare and other bot-detection challenges - Unwraps nested proxy CDN URLs (Substack, Omnivore, Microlink) to download from the original source - Downloads images from URLs referenced in markdown files - Creates local copies of images in an attachments directory - Automatically updates links in the markdown files with new local image paths - Compresses large images to reduce storage space - Supports multithreaded concurrent downloads - Uses rate limit","default_branch":null,"files":null,"tree":[],"storefront":"/r/mufidu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mufidu/markdown-image-downloader/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}