selectolax 0.3.31__cp313-cp313-macosx_10_13_x86_64.whl → 0.3.32__cp313-cp313-macosx_10_13_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of selectolax might be problematic. Click here for more details.

selectolax/__init__.py CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  __author__ = """Artem Golubin"""
5
5
  __email__ = 'me@rushter.com'
6
- __version__ = '0.3.31'
6
+ __version__ = '0.3.32'
7
7
 
8
8
  from . import parser
9
9
  from . import lexbor
Binary file
selectolax/lexbor.pyi CHANGED
@@ -158,11 +158,45 @@ class LexborNode:
158
158
  @overload
159
159
  def css_first(
160
160
  self, query: str, default: Any = ..., strict: Literal[True] = ...
161
- ) -> LexborNode: ...
161
+ ) -> LexborNode:
162
+ """Same as `css` but returns only the first match.
163
+
164
+ Parameters
165
+ ----------
166
+
167
+ query : str
168
+ default : bool, default None
169
+ Default value to return if there is no match.
170
+ strict: bool, default True
171
+ Set to True if you want to check if there is strictly only one match in the document.
172
+
173
+
174
+ Returns
175
+ -------
176
+ selector : `LexborNode` object
177
+ """
178
+ ...
162
179
  @overload
163
180
  def css_first(
164
181
  self, query: str, default: DefaultT, strict: bool = False
165
- ) -> LexborNode | DefaultT: ...
182
+ ) -> LexborNode | DefaultT:
183
+ """Same as `css` but returns only the first match.
184
+
185
+ Parameters
186
+ ----------
187
+
188
+ query : str
189
+ default : bool, default None
190
+ Default value to return if there is no match.
191
+ strict: bool, default True
192
+ Set to True if you want to check if there is strictly only one match in the document.
193
+
194
+
195
+ Returns
196
+ -------
197
+ selector : `LexborNode` object
198
+ """
199
+ ...
166
200
  @overload
167
201
  def css_first(
168
202
  self, query: str, default: None = ..., strict: bool = False
@@ -625,11 +659,45 @@ class LexborHTMLParser:
625
659
  @overload
626
660
  def css_first(
627
661
  self, query: str, default: Any = ..., strict: Literal[True] = ...
628
- ) -> LexborNode: ...
662
+ ) -> LexborNode:
663
+ """Same as `css` but returns only the first match.
664
+
665
+ Parameters
666
+ ----------
667
+
668
+ query : str
669
+ default : bool, default None
670
+ Default value to return if there is no match.
671
+ strict: bool, default True
672
+ Set to True if you want to check if there is strictly only one match in the document.
673
+
674
+
675
+ Returns
676
+ -------
677
+ selector : `LexborNode` object
678
+ """
679
+ ...
629
680
  @overload
630
681
  def css_first(
631
682
  self, query: str, default: DefaultT, strict: bool = False
632
- ) -> LexborNode | DefaultT: ...
683
+ ) -> LexborNode | DefaultT:
684
+ """Same as `css` but returns only the first match.
685
+
686
+ Parameters
687
+ ----------
688
+
689
+ query : str
690
+ default : bool, default None
691
+ Default value to return if there is no match.
692
+ strict: bool, default True
693
+ Set to True if you want to check if there is strictly only one match in the document.
694
+
695
+
696
+ Returns
697
+ -------
698
+ selector : `LexborNode` object
699
+ """
700
+ ...
633
701
  @overload
634
702
  def css_first(
635
703
  self, query: str, default: None = ..., strict: bool = False
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: selectolax
3
- Version: 0.3.31
3
+ Version: 0.3.32
4
4
  Summary: Fast HTML5 parser with CSS selectors.
5
5
  Home-page: https://github.com/rushter/selectolax
6
6
  Author: Artem Golubin
@@ -171,12 +171,12 @@ selectolax (Lexbor) 2.39 sec.
171
171
  Links
172
172
  -----
173
173
 
174
- * `selectolax API reference <http://selectolax.readthedocs.io/en/latest/parser.html>`_
174
+ * `selectolax API reference <https://selectolax.readthedocs.io/en/latest/index.html>`_
175
175
  * `Video introduction to web scraping using selectolax <https://youtu.be/HpRsfpPuUzE>`_
176
176
  * `How to Scrape 7k Products with Python using selectolax and httpx <https://www.youtube.com/watch?v=XpGvq755J2U>`_
177
177
  * `Detailed overview <https://github.com/rushter/selectolax/blob/master/examples/walkthrough.ipynb>`_
178
178
  * `Modest introduction <https://lexborisov.github.io/Modest/>`_
179
- * `Modest benchmark <http://lexborisov.github.io/benchmark-html-persers/>`_
179
+ * `Modest benchmark <https://lexborisov.github.io/benchmark-html-parsers/>`_
180
180
  * `Python benchmark <https://rushter.com/blog/python-fast-html-parser/>`_
181
181
  * `Another Python benchmark <https://www.peterbe.com/plog/selectolax-or-pyquery>`_
182
182
 
@@ -1,19 +1,19 @@
1
- selectolax-0.3.31.dist-info/RECORD,,
2
- selectolax-0.3.31.dist-info/WHEEL,sha256=0rn5ODYhsjI3KEHrk9RXNWLZT7Rowo6wA0Jh2iAIJLk,138
3
- selectolax-0.3.31.dist-info/top_level.txt,sha256=e5MuEM2PrQzoDlWetkFli9uXSlxa_ktW5jJEihhaI1c,11
4
- selectolax-0.3.31.dist-info/METADATA,sha256=iVOW-V8sahv5s63Eo8PDlQK2nGC-KGvlq9tXWVmFDQg,6214
5
- selectolax-0.3.31.dist-info/licenses/LICENSE,sha256=MYCcM-Cv_rC2-lQiwDumin0E-rMXAhK-qIGGA29434Y,1077
6
- selectolax/lexbor.pyi,sha256=0JuWgc9cb_ny83olLBrl24gvIAdP-fLBBxh6cO6R00s,24441
1
+ selectolax-0.3.32.dist-info/RECORD,,
2
+ selectolax-0.3.32.dist-info/WHEEL,sha256=0rn5ODYhsjI3KEHrk9RXNWLZT7Rowo6wA0Jh2iAIJLk,138
3
+ selectolax-0.3.32.dist-info/top_level.txt,sha256=e5MuEM2PrQzoDlWetkFli9uXSlxa_ktW5jJEihhaI1c,11
4
+ selectolax-0.3.32.dist-info/METADATA,sha256=md40UAppG8l88K7RGPkorVp_tVhGYPu-_pgVdcCaXoQ,6215
5
+ selectolax-0.3.32.dist-info/licenses/LICENSE,sha256=MYCcM-Cv_rC2-lQiwDumin0E-rMXAhK-qIGGA29434Y,1077
6
+ selectolax/lexbor.pyi,sha256=mgDhXZAqyqdO2Hnac3iHP7OfgGc6lIjmgdvMUov0CN4,26201
7
7
  selectolax/parser.pyx,sha256=2I0b9xWlRheISGIX2BTuA3J9XAGpB2io47Fv9L6yNvs,13541
8
- selectolax/__init__.py,sha256=NJ1PDua6jMqLGbQTfT8_Przo10SJ2siwHGMtHm1KSF0,175
8
+ selectolax/__init__.py,sha256=wFnZ6Pf1Xd1pd2sXonyCfm1bIMZF043J0-8ESygcQWQ,175
9
9
  selectolax/lexbor.pxd,sha256=xyQtbX4mOIWJpwffcn-6ZR8ta21uSLNZ07oWr4KXWbU,20937
10
10
  selectolax/lexbor.pyx,sha256=gwpZpx7C1NSSQUZ1yLXUP23rCJ9y1_uCRlPvFnAbhD8,11163
11
11
  selectolax/parser.pyi,sha256=J1og8EUwSvLCYFVi_Qd7p_zekT8ysZQxUK9fXg7qAfM,24817
12
12
  selectolax/utils.pxi,sha256=uB0-0naFQPy1JpR2DiIlKnyLyC76yWLnUHSuH11xg6s,3459
13
13
  selectolax/lexbor.c,sha256=ocxVoJRwhPBBQnXYT7-Ci7SZ9_UAlPm6C2NWjuS3yyk,2365985
14
- selectolax/parser.cpython-313-darwin.so,sha256=htl5PjufGCouUfpnl4kOjyszofgDuTj4n3u_Ach3Dfk,3059304
14
+ selectolax/parser.cpython-313-darwin.so,sha256=wQAatQ1lQxd-SuuW4fzL1IFgOnHrKfr9k7LuanXmqTg,3059304
15
15
  selectolax/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- selectolax/lexbor.cpython-313-darwin.so,sha256=_RLlK1TTLqk3sethnWh2MuuQnJO1-_VHv3IQy7BeEbI,3754176
16
+ selectolax/lexbor.cpython-313-darwin.so,sha256=3xjDzYq5cLfJpRIMR95doxIMq9ZddkwfDUdvXY4ABHo,3754840
17
17
  selectolax/parser.c,sha256=l3v_VqHEVVI20jiCkI8R9W-EPmVWu_q4GJKMKD59EZs,2235887
18
18
  selectolax/base.pxi,sha256=eiPKlY9gG3l49qJoRQVLl1Ljza6z1k0A-met6sDPcqE,89
19
19
  selectolax/parser.pxd,sha256=zZlg1vHUg6o4MXaiwKAo5S5hO_DqBGc4_E10qJ2EcM4,24564