aspose-html-net


Nameaspose-html-net JSON
Version 24.11.0 PyPI version JSON
download
home_pagehttps://products.aspose.com/html/python-net/
SummaryAspose.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.
upload_time2024-11-30 08:11:44
maintainerNone
docs_urlNone
authorAspose
requires_python<3.12,>=3.5
licenseNone
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
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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)


            

Raw data

            {
    "_id": null,
    "home_page": "https://products.aspose.com/html/python-net/",
    "name": "aspose-html-net",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.12,>=3.5",
    "maintainer_email": null,
    "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",
    "author": "Aspose",
    "author_email": null,
    "download_url": null,
    "platform": "win32",
    "description": "# Process & Manipulate HTML via Python API\r\n\r\n<!--- banner links to [Temporary License](https://purchase.aspose.com/temporary-license) -->\r\n[![banner](https://products.aspose.com/html/images/aspose_html-for-python-banner-TL.png)](https://purchase.aspose.com/temporary-license)\r\n\r\n[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) \r\n\r\n[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.\r\n\r\n## HTML API Features\r\n\r\nThe following are some popular features of Aspose.HTML for Python via .NET:\r\n\r\n- Convert HTML documents to a wide range of formats, including PDF, XPS, DOCX, and different image formats (PNG, JPEG, BMP, TIFF, and GIF).\r\n- Load and convert SVG and EPUB to XPS, PDF, and images.\r\n- Navigate through documents using either NodeIterator or TreeWalker.\r\n- Set and control the timeout for the rendering process.\r\n- Use MutationObserver to monitor DOM modifications.\r\n- Populate HTML documents with external data sources such as XML and JSON.\r\n- Support for both single (PDF, XPS) and multiple (image formats) output file streams.\r\n- Extract CSS styling information from HTML documents.\r\n- Configure a Sandbox environment that is independent of the execution machine, ensuring a secure and isolated environment for running and testing.\r\n\r\n## Read & Write Web Formats\r\n\r\n- Web: HTML, XHTML, MHTML\r\n- Other: SVG, MD (Markdown)\r\n\r\n## Save HTML As\r\n\r\n- Fixed Layout: PDF, XPS\r\n- Images: TIFF, JPEG, PNG, BMP, GIF\r\n\r\n## Read Formats\r\n\r\n- EPUB\r\n\r\n## Platform Independence\r\n\r\nAspose.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.\r\n\r\n## Get Started\r\n\r\nAre you ready to give Aspose.HTML for Python via .NET a try? \r\n\r\nSimply run ```pip install aspose-html-net``` from the Console to fetch the package.\r\nIf 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.\r\n\r\nYou 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.\r\n\r\n## Using Python to Convert HTML to Markdown (MD)\r\n\r\nAspose.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:\r\n\r\n```python\r\nimport os\r\nfrom aspose.html import *\r\nfrom aspose.html.converters import *\r\nfrom aspose.html.saving import *\r\n\r\n# Setup directories\r\noutput_folder = \"output/\"\r\ninput_folder = \"data/\"\r\nif not os.path.exists(output_folder):\r\n    os.makedirs(output_folder)\r\n\r\n# Prepare an HTML code and save it to the file\r\ncode = \"<h1>Header 1</h1>\" \\\r\n         \"<h2>Header 2</h2>\" \\\r\n         \"<p>Hello World!!</p>\"\r\ndocument_path = os.path.join(input_folder, 'document.html')\r\noutput_path = os.path.join(output_folder, 'output.md')\r\nwith open(document_path, 'w', encoding=\"utf-8\") as f:\r\n         f.write(code)\r\n         f.close()\r\n         # Call convert_html method to convert HTML to Markdown.\r\n         Converter.convert_html(document_path, MarkdownSaveOptions.git, output_path)\r\n```\r\n\r\n[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)\r\n\r\n",
    "bugtrack_url": null,
    "license": null,
    "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.",
    "version": "24.11.0",
    "project_urls": {
        "API Reference": "https://reference.aspose.com/html/python-net/",
        "Blog": "https://blog.aspose.com/category/html/",
        "Demos": "https://products.aspose.app/html/applications",
        "Docs": "https://docs.aspose.com/html/python-net/",
        "Examples": "https://github.com/aspose-html/",
        "Free Support": "https://forum.aspose.com/c/html/29",
        "Homepage": "https://products.aspose.com/html/python-net/",
        "Release Notes": "https://releases.aspose.com/html/python-net/release-notes/2024/aspose-html-for-python-via-dotnet-24-11-release-notes/",
        "Temporary License": "https://purchase.aspose.com/temporary-license"
    },
    "split_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"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4938f066838b11c767a016fd11358ec056544c3a7e9ba0d3fafec2992a6f7e1c",
                "md5": "ab98307185163f7e06f10480a9c9db44",
                "sha256": "0a7e0673aed6410d2718f4b6708edc017570de53bf9be97d9e199942c08c6518"
            },
            "downloads": -1,
            "filename": "aspose_html_net-24.11.0-py3-none-win32.whl",
            "has_sig": false,
            "md5_digest": "ab98307185163f7e06f10480a9c9db44",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.5",
            "size": 44592199,
            "upload_time": "2024-11-30T08:11:44",
            "upload_time_iso_8601": "2024-11-30T08:11:44.306506Z",
            "url": "https://files.pythonhosted.org/packages/49/38/f066838b11c767a016fd11358ec056544c3a7e9ba0d3fafec2992a6f7e1c/aspose_html_net-24.11.0-py3-none-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "db7b1add02705eee2c8efc9ebd53180f511fb0042b3875e07c141c4edaede4d1",
                "md5": "d43dce6c3890b00ee3959cb8e2e3178f",
                "sha256": "1189f31ffbc745a39390d27f62bea3fa3535e8c566458c8fcf07f3102f524dae"
            },
            "downloads": -1,
            "filename": "aspose_html_net-24.11.0-py3-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "d43dce6c3890b00ee3959cb8e2e3178f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.5",
            "size": 50934413,
            "upload_time": "2024-11-30T08:12:12",
            "upload_time_iso_8601": "2024-11-30T08:12:12.050548Z",
            "url": "https://files.pythonhosted.org/packages/db/7b/1add02705eee2c8efc9ebd53180f511fb0042b3875e07c141c4edaede4d1/aspose_html_net-24.11.0-py3-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-30 08:11:44",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "aspose-html-net"
}
        
Elapsed time: 1.67319s