Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

save-page-as-md

Download a webpage and save its content as Markdown, organizing the output on disk to mirror the webpage's domain and path.

Installation

pip install save-page-as-md

After installation, run it as save_page_as_md.

Usage

save_page_as_md <URL> [-o OUTPUT]
  • -o OUTPUT, --output OUTPUT: Optional. File path to write output Markdown.
    • Use - to print to stdout.
    • If not provided, output is saved in a folder structure based on the URL (see below).

Examples

Save the Python Wikipedia page in a folder structure mirroring its URL:

save_page_as_md https://en.wikipedia.org/wiki/Python_(programming_language)

Output will be placed in the directory:

./en.wikipedia.org/wiki/Python_(programming_language)/index.md

Save to a custom file:

save_page_as_md https://example.com -o example.md

Print Markdown to the terminal:

save_page_as_md https://example.com -o -

Caveats

  • For sites that require login or have JavaScript-loaded content, results may be incomplete.
  • Only HTTP and HTTPS are supported.
  • Some rare filenames/paths may be problematic on Windows due to reserved device names (e.g., CON, AUX) - review output on Windows systems.

Contributing

Contributions are welcome! Please submit pull requests or open issues on the GitHub repository.

License

This project is licensed under the MIT License.

Release files for save-page-as-md 0.1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for save-page-as-md 0.1.0a1
File Size Uploaded
save_page_as_md-0.1.0a1.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for save-page-as-md 0.1.0a1
File Interpreter ABI Platform
save_page_as_md-0.1.0a1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 7.4 kB

Release files / save_page_as_md-0.1.0a1.tar.gz

Download URL save_page_as_md-0.1.0a1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
00cac479277f903b371766a48dcdd79d4bf553b6395852960e56279daf436769
BLAKE2b-256 checksum
How to use checksums
ef2c01d527186bdb291d92378c59632b01b035798e1fdb5fea2dc00884271bed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / save_page_as_md-0.1.0a1-py2.py3-none-any.whl

Download URL save_page_as_md-0.1.0a1-py2.py3-none-any.whl
Size 3.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
bfec7cc68a43122b6730a5b135be641d66f7f65c428ef258aff42049d29d363e
BLAKE2b-256 checksum
How to use checksums
7b4830303c4a93163fc721baefe9cf4f9e47e071a6171374ee9eaf98ea8476bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.0a1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page