Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
rushter committed Oct 12, 2024
1 parent 7aff448 commit 279c526
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ Available backends
Selectolax supports two backends: ``Modest`` and ``Lexbor``. By default, all examples use the Modest backend.
Most of the features between backends are almost identical, but there are still some differences.

As of 2024, the preferred backend is ``Lexbor``. The ``Modest`` backend is still available for compatibility reasons
and the underlying C library that selectolax uses is not maintained anymore.


To use ``lexbor``, just import the parser and use it in the similar way to the `HTMLParser`.

.. code:: python
Expand All @@ -119,7 +123,7 @@ Simple Benchmark
Package Time
============================ ===========
Beautiful Soup (html.parser) 61.02 sec.
lxml 9.09 sec.
lxml / Beautiful Soup (lxml) 9.09 sec.
html5_parser 16.10 sec.
selectolax (Modest) 2.94 sec.
selectolax (Lexbor) 2.39 sec.
Expand Down

0 comments on commit 279c526

Please sign in to comment.