Skip to main content

CSS selector implementation for Bisque and Campbells web scraping libraries.

Project description

Chinois 🍵

CSS selector implementation for Bisque and Campbells web scraping libraries.

InstallExamples

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

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

chinois-0.2.2.tar.gz (64.7 kB view hashes)

Uploaded Source

Built Distribution

chinois-0.2.2-py3-none-any.whl (34.8 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