Skip to main content

BeautifulSoup Element Parser for Swarmauri.

Project description

Swamauri Logo

PyPI - Downloads GitHub 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.7.3.tar.gz.

File metadata

File hashes

Hashes for swarmauri_parser_beautifulsoupelement-0.7.3.tar.gz
Algorithm Hash digest
SHA256 3e9bcce6efd02c21bc02a077a6fd6b02ffa1fc065a305a1278297422f2e4b3c8
MD5 0d20ae3b70da723c925023858523fe44
BLAKE2b-256 406d2b9829f73d3714194a2c8924f7225dbbb58ff9815001723b2b4d5b0e3c84

See more details on using hashes here.

File details

Details for the file swarmauri_parser_beautifulsoupelement-0.7.3-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_parser_beautifulsoupelement-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5ed47e4324394710f50988270d7b8a7c5a566a324629acbc80a5a65aec22490f
MD5 1fc66d3dc7a04ef52e7b712f1982c899
BLAKE2b-256 21667442c96518918ae6c24e0919c742ec1db7179e5c703d7aebd8c3505c42a1

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