Skip to main content

BeautifulSoup Element Parser for Swarmauri.

Project description

Swamauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_parser_beautifulsoupelement


Swarmauri Parser Beautifulsoupelement

A specialized parser that utilizes BeautifulSoup to extract specific HTML elements and their content from HTML documents.

Installation

pip install swarmauri_parser_beautifulsoupelement

Usage

The BeautifulSoupElementParser allows you to extract specific HTML elements from HTML content:

from swarmauri_parser_beautifulsoupelement.BeautifulSoupElementParser import BeautifulSoupElementParser

# Create a parser instance to extract paragraphs
parser = BeautifulSoupElementParser(element="p")

# HTML content to parse
html_content = "<div><p>First paragraph</p><p>Second paragraph</p></div>"

# Parse the content
documents = parser.parse(html_content)

# Access the extracted elements
for doc in documents:
    print(doc.content)  # Prints each paragraph element

Want to help?

If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.

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

Built Distribution

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

File details

Details for the file swarmauri_parser_beautifulsoupelement-0.9.0.dev3.tar.gz.

File metadata

File hashes

Hashes for swarmauri_parser_beautifulsoupelement-0.9.0.dev3.tar.gz
Algorithm Hash digest
SHA256 48afc21fbd9d44b1a1bbbafddb7951349c8deabbf0e05d135626587a4a3fb90e
MD5 b46562e9a95ce804344b25bd80b001f6
BLAKE2b-256 8ff106d7749620ec328ca5a2ef2ce89ce45496cea85e3986f1ee45e347d9dab9

See more details on using hashes here.

File details

Details for the file swarmauri_parser_beautifulsoupelement-0.9.0.dev3-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_parser_beautifulsoupelement-0.9.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 3f887960b7f18a7dfadbf323581e6ba8dfb1a0e3ebddc9e11a4cbb1ff80de6db
MD5 bfe4e48f2f992573d4232703a53bbf7c
BLAKE2b-256 ea06b2192f2e19d880eff510353ba728ed191b4ef45ba7f5773eca53021851f3

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