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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file LxmlSoup-1.5.2.tar.gz
.
File metadata
- Download URL: LxmlSoup-1.5.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.66.1 urllib3/1.26.5 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eef6853721d4cc31b8d623f1125d1f0c0525d0da467645f96151cb2ebec2d5c |
|
MD5 | c30d18f8bc7933c63b059f825f60f928 |
|
BLAKE2b-256 | 9ba08f1b26b4943b260478e613ed50519bfbff9a1ca2e1b81ab09bae48cfa02f |
File details
Details for the file LxmlSoup-1.5.2-py3-none-any.whl
.
File metadata
- Download URL: LxmlSoup-1.5.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.66.1 urllib3/1.26.5 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a05e8708943049e5ad3d1ddef1591e0a8eeea0c4157ed2e97d178e2006f098d |
|
MD5 | 50fb1c0eb6d454423c67e2b62d923c63 |
|
BLAKE2b-256 | ccb2619b7584fcc39c0037f33edfbcf60b438349e9d32b8fd06503eeeae9d3a1 |