Skip to main content

LxmlSoup 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

Example

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-link js-cl-item-link js-cl-item-root-link')
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


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.5.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

LxmlSoup-1.5.2-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page