Skip to main content

A tool for downloading embedded images in a Markdown document into a dedicated directory and replacing the image links with the local ones.

Project description

Attachments Fetcher

A tool for downloading embedded images in a Markdown document into a dedicated directory and replacing the image links with the local (fetched) ones.

Usage example

For example, if you have a Markdown called input.md, with the following contents:

Hello world!
![image](https://example.com/image/storage/sample.png)

After running this script against it:

af-make-local -i input.md -o output.md -m ./media

You will find a new file called output.md with the following content:

Hello world!
![image](./media/sample.png)

and a sample.png image file, stored in the ./media directory.

Project details


Download files

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

Source Distribution

attachments_fetcher-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

attachments_fetcher-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file attachments_fetcher-0.1.0.tar.gz.

File metadata

  • Download URL: attachments_fetcher-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.24

File hashes

Hashes for attachments_fetcher-0.1.0.tar.gz
Algorithm Hash digest
SHA256 16078a88c711c749a5d966ffd243342fc0a224d9549670f449b7a5266311c2ae
MD5 4c81af3446469f72de190865b183098d
BLAKE2b-256 a0e09bf970120bb79cd504a1b126f2ee09f0c1bf2bf5d7fa1396a0c31354c8aa

See more details on using hashes here.

File details

Details for the file attachments_fetcher-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for attachments_fetcher-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd57e50534de1d6ed9206a5a04a85041c1fabd88c4cf297abf8916a024f79c51
MD5 ca0a973181717ff48d0318dc8c43dc8e
BLAKE2b-256 e1099c2fac05126502613f813ae725a2953f003dd967885206c39e3f2745f58e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page