This repository contains ready-to-use Python code snippets referenced in the Aspose.HTML for Python via .NET documentation, specifically within the Data Extraction chapter. These gists showcase various approaches and techniques for effectively parsing, navigating, and extracting information from HTML documents using the Aspose.HTML for Python via .NET library.
- Download images and SVGs from website – Programmatically extract various types of images from a website using Python.
- Save File from URL – Extract and save a file from a URL programmatically by using the network capabilities of the Aspose.HTML for Python via .NET library.
- Extract data from tables – Retrieve structured information from HTML tables.
- Navigate and inspect HTML – Inspect HTML documents in detail and navigate elements efficiently using CSS selectors or XPath.
Aspose.HTML for Python via .NET is a high-performance library that enables developers to create, edit, and convert HTML, SVG, EPUB, MHTML, and Markdown documents. It offers full control over DOM, CSS, and resources, making it ideal for cross-platform applications in Windows, Linux, and macOS. Using this API, developers can integrate advanced document conversion, rendering, and data extraction features into their Python applications without requiring external software.
- Python 3.5 or newer
- .NET Core / .NET 5+ runtime installed
- Supported OS: Windows, macOS, Linux
- Aspose.HTML for Python via .NET installed from PyPI
- Install the Aspose.HTML Python package:
pip install aspose-html-net
- Clone or download this gist to your local machine.
- Set correct input/output paths, data directories, font folders, etc.
- Run your project to see the example in action.
To explore Aspose.HTML for Python via .NET features in more depth, download the library or get support using the official links below: