selectolax 0.3.31__cp311-cp311-macosx_11_0_arm64.whl → 0.3.32__cp311-cp311-macosx_11_0_arm64.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 +1 -1
- selectolax/lexbor.cpython-311-darwin.so +0 -0
- selectolax/lexbor.pyi +72 -4
- selectolax/parser.cpython-311-darwin.so +0 -0
- {selectolax-0.3.31.dist-info → selectolax-0.3.32.dist-info}/METADATA +3 -3
- {selectolax-0.3.31.dist-info → selectolax-0.3.32.dist-info}/RECORD +9 -9
- {selectolax-0.3.31.dist-info → selectolax-0.3.32.dist-info}/WHEEL +0 -0
- {selectolax-0.3.31.dist-info → selectolax-0.3.32.dist-info}/licenses/LICENSE +0 -0
- {selectolax-0.3.31.dist-info → selectolax-0.3.32.dist-info}/top_level.txt +0 -0
selectolax/__init__.py
CHANGED
|
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.
|
|
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 <
|
|
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 <
|
|
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,13 +1,13 @@
|
|
|
1
|
-
selectolax-0.3.
|
|
2
|
-
selectolax-0.3.
|
|
3
|
-
selectolax-0.3.
|
|
4
|
-
selectolax-0.3.
|
|
5
|
-
selectolax-0.3.
|
|
6
|
-
selectolax/lexbor.pyi,sha256=
|
|
1
|
+
selectolax-0.3.32.dist-info/RECORD,,
|
|
2
|
+
selectolax-0.3.32.dist-info/WHEEL,sha256=sunMa2yiYbrNLGeMVDqEA0ayyJbHlex7SCn1TZrEq60,136
|
|
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/parser.cpython-311-darwin.so,sha256=
|
|
9
|
-
selectolax/lexbor.cpython-311-darwin.so,sha256=
|
|
10
|
-
selectolax/__init__.py,sha256=
|
|
8
|
+
selectolax/parser.cpython-311-darwin.so,sha256=kreD_Vr-SZMtECVdfCARDhki7OucxjTowm6uBTzjh3Y,3054128
|
|
9
|
+
selectolax/lexbor.cpython-311-darwin.so,sha256=iGRRocTd741mY55olpgA3g1URbM3uij8o_jSe4uzXEI,3756112
|
|
10
|
+
selectolax/__init__.py,sha256=wFnZ6Pf1Xd1pd2sXonyCfm1bIMZF043J0-8ESygcQWQ,175
|
|
11
11
|
selectolax/lexbor.pxd,sha256=xyQtbX4mOIWJpwffcn-6ZR8ta21uSLNZ07oWr4KXWbU,20937
|
|
12
12
|
selectolax/lexbor.pyx,sha256=gwpZpx7C1NSSQUZ1yLXUP23rCJ9y1_uCRlPvFnAbhD8,11163
|
|
13
13
|
selectolax/parser.pyi,sha256=J1og8EUwSvLCYFVi_Qd7p_zekT8ysZQxUK9fXg7qAfM,24817
|
|
File without changes
|
|
File without changes
|
|
File without changes
|