Metadata-Version: 2.1
Name: aspose-html-net
Version: 25.5.0
Summary: Aspose.HTML for Python via .NET is a powerful API for Python that provides a headless browser functionality, allowing you to work with HTML documents in a variety of ways. With this API, you can easily create new HTML documents or open existing ones from different sources. Once you have the document, you can perform various manipulation operations, such as removing and replacing HTML nodes.
Home-page: https://products.aspose.com/html/python-net/
Author: Aspose
License: UNKNOWN
Project-URL: Docs, https://docs.aspose.com/html/python-net/
Project-URL: Release Notes, https://releases.aspose.com/html/python-net/release-notes/2025/aspose-html-for-python-via-dotnet-25-5-release-notes/
Project-URL: Demos, https://products.aspose.app/html/applications
Project-URL: API Reference, https://reference.aspose.com/html/python-net/
Project-URL: Examples, https://github.com/aspose-html/
Project-URL: Blog, https://blog.aspose.com/category/html/
Project-URL: Free Support, https://forum.aspose.com/c/html/29
Project-URL: Temporary License, https://purchase.aspose.com/temporary-license
Keywords: Aspose,Aspose.HTML,Aspose.Total,Python,Component,Conholdate,Conholdate.Total,convert,converter,vectorization,vectorizer,vectorize,encoding,base64,css,DOM,dom-manipulation,image,JPEG,Library,Microsoft,mvc,net-standard,netcore,netstandard,to PDF,PNG,rotate,security,Standard,XPath,XPS,SVG,Windows,Vector Graphics,line,Bezier Curves,Cubic,Glyphs,Paths,Text,Scaling,Rotation,Skewing,Fill,Dots,Bitmap,HTML,HTML-to-Image,HTML-to-PDF,HTML-to-XPS,HTML-to-DOCX,HTML-to-MHTML,HTML-to-Markdown,HTML-to-MD,EPUB-to-Image,EPUB-to-PDF,EPUB-to-XPS,Markdown-to-HTML,MD-to-HTML,HTML-Template,HTML-Converter,HTML-Renderer,SVG-Renderer,MHTML-Renderer,EPUB-Renderer,HTML5,HTML5-Canvas,HTML-DOM,HTML-Form-Editor,HTML,XHTML,MHTML,EPUB,SVG,MD,Markdown,DOCX,PDF,XPS,TIFF,JPEG,JPG,PNG,BMP,GIF,WEBP,eBook-API,Headless-Browser,Document-Manipulation,Web-Scraping,Conversion,Crawler,Hypertext,Markup,XPath,Spider,CSS,CSS3,Converter,DOM,Convert,Azure,parse,render,image,graphics,to HTML-code,XHTML-to-PDF,MHTML-to-PDF,HTML-to-GIF,MHTML-to-JPG
Platform: win_amd64
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Office/Business
Classifier: Topic :: Office/Business :: Scheduling
Requires-Python: >=3.5,<3.14
Description-Content-Type: text/markdown

# Process & Manipulate HTML via Python API

<!--- banner links to [Temporary License](https://purchase.aspose.com/temporary-license) -->
[![banner](https://products.aspose.com/html/images/aspose_html-for-python-banner-TL.png)](https://purchase.aspose.com/temporary-license)

[Product Page](https://products.aspose.com/html/python-net/) | [Docs](https://docs.aspose.com/html/python-net/) | [Demos](https://products.aspose.app/html/applications) | [API Reference](https://reference.aspose.com/html/python-net/) | [Examples](https://github.com/aspose-html/) | [Blog](https://blog.aspose.com/category/html/) | [Search](https://search.aspose.com/) | [Free Support](https://forum.aspose.com/c/html/29) 

[Aspose.HTML for Python via .NET](https://products.aspose.com/html/python-net/) is a powerful API for Python that provides headless browser functionality, allowing you to work with HTML documents. With this API, you can easily create new HTML documents or open existing ones from different sources. Once you have the document, you can perform various manipulation operations, such as removing and replacing HTML nodes, rendering, and converting HTML to other popular formats, etc.

## HTML API Features

The following are some popular features of Aspose.HTML for Python via .NET:

- Convert HTML documents to a wide range of formats, including PDF, XPS, DOCX, and different image formats (PNG, JPEG, BMP, TIFF, and GIF).
- Load and convert SVG and EPUB to XPS, PDF, and images.
- Navigate through documents using either NodeIterator or TreeWalker.
- Set and control the timeout for the rendering process.
- Use MutationObserver to monitor DOM modifications.
- Populate HTML documents with external data sources such as XML and JSON.
- Support for both single (PDF, XPS) and multiple (image formats) output file streams.
- Extract CSS styling information from HTML documents.
- Configure a Sandbox environment that is independent of the execution machine, ensuring a secure and isolated environment for running and testing.

## Read & Write Web Formats

- Web: HTML, XHTML, MHTML
- Other: SVG, MD (Markdown)

## Save HTML As

- Fixed Layout: PDF, XPS
- Images: TIFF, JPEG, PNG, BMP, GIF

## Read Formats

- EPUB

## Platform Independence

Aspose.HTML for Python via .NET can be used to develop applications for a vast range of operating systems, such as Windows, where Python 3.5 or later is installed. You can build both 32-bit and 64-bit Python applications.

## Get Started

Are you ready to give Aspose.HTML for Python via .NET a try? 

Simply run ```pip install aspose-html-net``` from the Console to fetch the package.
If you already have Aspose.HTML for Python via .NET and want to upgrade the version, please run ```pip install --upgrade aspose-html-net``` to get the latest version.

You can run the following snippets in your environment to see how Aspose.HTML works, or check out the [GitHub Repository](https://github.com/aspose-html/) or [Aspose.HTML for Python via .NET Documentation](https://docs.aspose.com/html/python-net/) for other common use cases.

## Using Python to Convert HTML to Markdown (MD)

Aspose.HTML for Python via .NET allows you to convert HTML to PDF, XPS, Markdown, MHTML, PNG, JPEG, and other file formats. The following snippet demonstrates the conversion from HTML to GIT-based Markdown (MD) Format:

```python
import os
from aspose.html import *
from aspose.html.converters import *
from aspose.html.saving import *

# Setup directories
output_folder = "output/"
input_folder = "data/"
if not os.path.exists(output_folder):
    os.makedirs(output_folder)

# Prepare an HTML code and save it to the file
code = "<h1>Header 1</h1>" \
         "<h2>Header 2</h2>" \
         "<p>Hello World!!</p>"
document_path = os.path.join(input_folder, 'document.html')
output_path = os.path.join(output_folder, 'output.md')
with open(document_path, 'w', encoding="utf-8") as f:
         f.write(code)
         f.close()
         # Call convert_html method to convert HTML to Markdown.
         Converter.convert_html(document_path, MarkdownSaveOptions.git, output_path)
```

[Product Page](https://products.aspose.com/html/python-net/) | [Docs](https://docs.aspose.com/html/python-net/) | [Demos](https://products.aspose.app/html/applications) | [API Reference](https://reference.aspose.com/html/python-net/) | [Examples](https://github.com/aspose-html/) | [Blog](https://blog.aspose.com/category/html/) | [Search](https://search.aspose.com/) | [Free Support](https://forum.aspose.com/c/html/29) | [Temporary License](https://purchase.aspose.com/temporary-license)

