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 hashes)