Skip to main content

f is a set of tools for fast and easy parsing

Project description

LxmlSoup

LxmlSoup is an analogue of BeautifulSoup, containing the most basic and necessary methods. Its speed exceeds bs4 by 5 times. The syntax is the same.

0.020386695861816406 - LxmlSoup
0.10153651237487793 - BeautifulSoup

Installation

LxmlSoup requires Python >= 3.7

Install with pip from PyPI:

pip install LxmlSoup

Or cloning the repository:

git clone git@github.com:gladkihaa-28/LxmlSoup.git

Examples

from LxmlSoup import LxmlSoup
import requests

html = requests.get('https://sunlight.net/catalog').text
soup = LxmlSoup(html)

links = soup.find_all('a', class_='cl-item-img cl-item-img_loaded')
for link in links:
    print(link.text(), link.get('href'))
from LxmlSoup import LxmlSoup
import requests

html = requests.get('https://sunlight.net/catalog').text
soup = LxmlSoup(html)

links = soup.find_all('a', attrs={'itemprop': 'url'})
for link in links:
    print(link.text(), link.get('href'))

You can support the author so that updates come out more often. Sberbank - 2202 2062 9710 1995

Project details


Release history Release notifications | RSS feed

This version

1.6

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lxmlsoup-1.6.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

lxmlsoup-1.6-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file lxmlsoup-1.6.tar.gz.

File metadata

  • Download URL: lxmlsoup-1.6.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for lxmlsoup-1.6.tar.gz
Algorithm Hash digest
SHA256 556e86acb2ad0864d3e3d4cc867f8e79c07d73f751294b7a2c77c9240fcab58c
MD5 831a0a78f2e933996e38fd81b4a4c85f
BLAKE2b-256 12b1bf3cd967954bfe023ec34c2d6cccecda3914d94905bf68992ec9e17081bd

See more details on using hashes here.

File details

Details for the file lxmlsoup-1.6-py3-none-any.whl.

File metadata

  • Download URL: lxmlsoup-1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for lxmlsoup-1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6630935b8594b622ad739d9ac8abf3fa93782a0fd96a72b188f7433ab5b074ce
MD5 57ee23e692b175df47e28a6a929f6b70
BLAKE2b-256 919797b9a7b553b43999776c7ad855a52bc2f65d3320d9843c0aa0f406991fef

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