Skip to main content

Chinois 🍵

CSS selector implementation for Bisque and Campbells web scraping libraries.

Install • Examples

Adapted from soupsieve's inner package, to remove the hard coupling to Beautiful Soup.

Installation

Chinois is available on PyPi:

pip install chinois

The dependencies needed to use bisque and campbells parsing libraries are left to your taste. They can be installed with:

  • pip install chinois[bisque] for the bold new flavours of Pydantic model-based parsers in Bisque.
  • pip install chinois[campbells] for the Campbells parsers, preserving the heritage taste of the Beautiful Soup API.

The dependencies needed to use html5lib and lxml parsers are not installed by default. They can be installed with:

  • pip install chinois[html5lib] to be able to use html5lib.
    • Pros: closest to how browsers parses web pages, very lenient, creates valid HTML5.
    • Cons: slowest parser.
  • pip install chinois[lxml] to be able to use lxml.
    • Pros: fastest parser.
    • Cons: heavier dependency (C extension).

Metadata

Release files for chinois 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chinois 0.2.2
File Size Uploaded
chinois-0.2.2.tar.gz 64.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chinois 0.2.2
File Interpreter ABI Platform
chinois-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 99.5 kB

Release files / chinois-0.2.2.tar.gz

Download URL chinois-0.2.2.tar.gz
Size 64.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7d9019517329a4cdaebce91ce92555ab0b3236ce178b518820ec5db70ee1b3d9
BLAKE2b-256 checksum
How to use checksums
a4c7cb85fee11e84dbad8d6fb2556f194ef0a1c88543aabc13ab2467028eb455
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.8.2 CPython/3.10.6

Release files / chinois-0.2.2-py3-none-any.whl

Download URL chinois-0.2.2-py3-none-any.whl
Size 34.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80bec5468bec211177c2f2d88796cd926597a183a3c7b30a72924ce415c200f1
BLAKE2b-256 checksum
How to use checksums
fedf015a867747cb54e7ce156af70306d2212f6b19783b0720962affb38e074f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.8.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page