scraper-rust 0.1.3__tar.gz
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.
- scraper_rust-0.1.3/.gitignore +34 -0
- scraper_rust-0.1.3/Cargo.lock +603 -0
- scraper_rust-0.1.3/Cargo.toml +18 -0
- scraper_rust-0.1.3/PKG-INFO +18 -0
- scraper_rust-0.1.3/README.md +72 -0
- scraper_rust-0.1.3/examples/demo.py +39 -0
- scraper_rust-0.1.3/justfile +24 -0
- scraper_rust-0.1.3/py.typed +0 -0
- scraper_rust-0.1.3/pyproject.toml +35 -0
- scraper_rust-0.1.3/scraper_rs.pyi +40 -0
- scraper_rust-0.1.3/src/lib.rs +278 -0
- scraper_rust-0.1.3/tests/test_scraper.py +102 -0
- scraper_rust-0.1.3/uv.lock +186 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Rust
|
|
2
|
+
/target/
|
|
3
|
+
|
|
4
|
+
# Python builds
|
|
5
|
+
build/
|
|
6
|
+
dist/
|
|
7
|
+
*.egg-info/
|
|
8
|
+
.eggs/
|
|
9
|
+
pip-wheel-metadata/
|
|
10
|
+
*.pyd
|
|
11
|
+
*.so
|
|
12
|
+
*.py[cod]
|
|
13
|
+
__pycache__/
|
|
14
|
+
|
|
15
|
+
# Virtual environments
|
|
16
|
+
.venv/
|
|
17
|
+
venv/
|
|
18
|
+
env/
|
|
19
|
+
.python-version
|
|
20
|
+
|
|
21
|
+
# Tooling caches
|
|
22
|
+
.mypy_cache/
|
|
23
|
+
.ruff_cache/
|
|
24
|
+
.pytest_cache/
|
|
25
|
+
.hypothesis/
|
|
26
|
+
.coverage
|
|
27
|
+
.coverage.*
|
|
28
|
+
htmlcov/
|
|
29
|
+
.cache/
|
|
30
|
+
|
|
31
|
+
# Editors
|
|
32
|
+
.idea/
|
|
33
|
+
.vscode/
|
|
34
|
+
.DS_Store
|
|
@@ -0,0 +1,603 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "autocfg"
|
|
7
|
+
version = "1.5.0"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "bitflags"
|
|
13
|
+
version = "2.10.0"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "cfg-if"
|
|
19
|
+
version = "1.0.4"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "cssparser"
|
|
25
|
+
version = "0.36.0"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "dae61cf9c0abb83bd659dab65b7e4e38d8236824c85f0f804f173567bda257d2"
|
|
28
|
+
dependencies = [
|
|
29
|
+
"cssparser-macros",
|
|
30
|
+
"dtoa-short",
|
|
31
|
+
"itoa",
|
|
32
|
+
"phf",
|
|
33
|
+
"smallvec",
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
[[package]]
|
|
37
|
+
name = "cssparser-macros"
|
|
38
|
+
version = "0.6.1"
|
|
39
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
40
|
+
checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"
|
|
41
|
+
dependencies = [
|
|
42
|
+
"quote",
|
|
43
|
+
"syn",
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
[[package]]
|
|
47
|
+
name = "derive_more"
|
|
48
|
+
version = "2.1.0"
|
|
49
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
50
|
+
checksum = "10b768e943bed7bf2cab53df09f4bc34bfd217cdb57d971e769874c9a6710618"
|
|
51
|
+
dependencies = [
|
|
52
|
+
"derive_more-impl",
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
[[package]]
|
|
56
|
+
name = "derive_more-impl"
|
|
57
|
+
version = "2.1.0"
|
|
58
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
59
|
+
checksum = "6d286bfdaf75e988b4a78e013ecd79c581e06399ab53fbacd2d916c2f904f30b"
|
|
60
|
+
dependencies = [
|
|
61
|
+
"proc-macro2",
|
|
62
|
+
"quote",
|
|
63
|
+
"rustc_version",
|
|
64
|
+
"syn",
|
|
65
|
+
]
|
|
66
|
+
|
|
67
|
+
[[package]]
|
|
68
|
+
name = "dtoa"
|
|
69
|
+
version = "1.0.10"
|
|
70
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
71
|
+
checksum = "d6add3b8cff394282be81f3fc1a0605db594ed69890078ca6e2cab1c408bcf04"
|
|
72
|
+
|
|
73
|
+
[[package]]
|
|
74
|
+
name = "dtoa-short"
|
|
75
|
+
version = "0.3.5"
|
|
76
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
77
|
+
checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87"
|
|
78
|
+
dependencies = [
|
|
79
|
+
"dtoa",
|
|
80
|
+
]
|
|
81
|
+
|
|
82
|
+
[[package]]
|
|
83
|
+
name = "ego-tree"
|
|
84
|
+
version = "0.10.0"
|
|
85
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
86
|
+
checksum = "b2972feb8dffe7bc8c5463b1dacda1b0dfbed3710e50f977d965429692d74cd8"
|
|
87
|
+
|
|
88
|
+
[[package]]
|
|
89
|
+
name = "fastrand"
|
|
90
|
+
version = "2.3.0"
|
|
91
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
92
|
+
checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
|
|
93
|
+
|
|
94
|
+
[[package]]
|
|
95
|
+
name = "futf"
|
|
96
|
+
version = "0.1.5"
|
|
97
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
98
|
+
checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843"
|
|
99
|
+
dependencies = [
|
|
100
|
+
"mac",
|
|
101
|
+
"new_debug_unreachable",
|
|
102
|
+
]
|
|
103
|
+
|
|
104
|
+
[[package]]
|
|
105
|
+
name = "getopts"
|
|
106
|
+
version = "0.2.24"
|
|
107
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
108
|
+
checksum = "cfe4fbac503b8d1f88e6676011885f34b7174f46e59956bba534ba83abded4df"
|
|
109
|
+
dependencies = [
|
|
110
|
+
"unicode-width",
|
|
111
|
+
]
|
|
112
|
+
|
|
113
|
+
[[package]]
|
|
114
|
+
name = "heck"
|
|
115
|
+
version = "0.5.0"
|
|
116
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
117
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
118
|
+
|
|
119
|
+
[[package]]
|
|
120
|
+
name = "html5ever"
|
|
121
|
+
version = "0.36.1"
|
|
122
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
123
|
+
checksum = "6452c4751a24e1b99c3260d505eaeee76a050573e61f30ac2c924ddc7236f01e"
|
|
124
|
+
dependencies = [
|
|
125
|
+
"log",
|
|
126
|
+
"markup5ever",
|
|
127
|
+
]
|
|
128
|
+
|
|
129
|
+
[[package]]
|
|
130
|
+
name = "indoc"
|
|
131
|
+
version = "2.0.7"
|
|
132
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
133
|
+
checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
|
|
134
|
+
dependencies = [
|
|
135
|
+
"rustversion",
|
|
136
|
+
]
|
|
137
|
+
|
|
138
|
+
[[package]]
|
|
139
|
+
name = "itoa"
|
|
140
|
+
version = "1.0.15"
|
|
141
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
142
|
+
checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
|
|
143
|
+
|
|
144
|
+
[[package]]
|
|
145
|
+
name = "libc"
|
|
146
|
+
version = "0.2.178"
|
|
147
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
148
|
+
checksum = "37c93d8daa9d8a012fd8ab92f088405fb202ea0b6ab73ee2482ae66af4f42091"
|
|
149
|
+
|
|
150
|
+
[[package]]
|
|
151
|
+
name = "lock_api"
|
|
152
|
+
version = "0.4.14"
|
|
153
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
154
|
+
checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
|
|
155
|
+
dependencies = [
|
|
156
|
+
"scopeguard",
|
|
157
|
+
]
|
|
158
|
+
|
|
159
|
+
[[package]]
|
|
160
|
+
name = "log"
|
|
161
|
+
version = "0.4.29"
|
|
162
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
163
|
+
checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
|
|
164
|
+
|
|
165
|
+
[[package]]
|
|
166
|
+
name = "mac"
|
|
167
|
+
version = "0.1.1"
|
|
168
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
169
|
+
checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
|
|
170
|
+
|
|
171
|
+
[[package]]
|
|
172
|
+
name = "markup5ever"
|
|
173
|
+
version = "0.36.1"
|
|
174
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
175
|
+
checksum = "6c3294c4d74d0742910f8c7b466f44dda9eb2d5742c1e430138df290a1e8451c"
|
|
176
|
+
dependencies = [
|
|
177
|
+
"log",
|
|
178
|
+
"tendril",
|
|
179
|
+
"web_atoms",
|
|
180
|
+
]
|
|
181
|
+
|
|
182
|
+
[[package]]
|
|
183
|
+
name = "memoffset"
|
|
184
|
+
version = "0.9.1"
|
|
185
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
186
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
187
|
+
dependencies = [
|
|
188
|
+
"autocfg",
|
|
189
|
+
]
|
|
190
|
+
|
|
191
|
+
[[package]]
|
|
192
|
+
name = "new_debug_unreachable"
|
|
193
|
+
version = "1.0.6"
|
|
194
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
195
|
+
checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
|
|
196
|
+
|
|
197
|
+
[[package]]
|
|
198
|
+
name = "once_cell"
|
|
199
|
+
version = "1.21.3"
|
|
200
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
201
|
+
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
|
|
202
|
+
|
|
203
|
+
[[package]]
|
|
204
|
+
name = "parking_lot"
|
|
205
|
+
version = "0.12.5"
|
|
206
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
207
|
+
checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
|
|
208
|
+
dependencies = [
|
|
209
|
+
"lock_api",
|
|
210
|
+
"parking_lot_core",
|
|
211
|
+
]
|
|
212
|
+
|
|
213
|
+
[[package]]
|
|
214
|
+
name = "parking_lot_core"
|
|
215
|
+
version = "0.9.12"
|
|
216
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
217
|
+
checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
|
|
218
|
+
dependencies = [
|
|
219
|
+
"cfg-if",
|
|
220
|
+
"libc",
|
|
221
|
+
"redox_syscall",
|
|
222
|
+
"smallvec",
|
|
223
|
+
"windows-link",
|
|
224
|
+
]
|
|
225
|
+
|
|
226
|
+
[[package]]
|
|
227
|
+
name = "phf"
|
|
228
|
+
version = "0.13.1"
|
|
229
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
230
|
+
checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
|
|
231
|
+
dependencies = [
|
|
232
|
+
"phf_macros",
|
|
233
|
+
"phf_shared",
|
|
234
|
+
"serde",
|
|
235
|
+
]
|
|
236
|
+
|
|
237
|
+
[[package]]
|
|
238
|
+
name = "phf_codegen"
|
|
239
|
+
version = "0.13.1"
|
|
240
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
241
|
+
checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"
|
|
242
|
+
dependencies = [
|
|
243
|
+
"phf_generator",
|
|
244
|
+
"phf_shared",
|
|
245
|
+
]
|
|
246
|
+
|
|
247
|
+
[[package]]
|
|
248
|
+
name = "phf_generator"
|
|
249
|
+
version = "0.13.1"
|
|
250
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
251
|
+
checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"
|
|
252
|
+
dependencies = [
|
|
253
|
+
"fastrand",
|
|
254
|
+
"phf_shared",
|
|
255
|
+
]
|
|
256
|
+
|
|
257
|
+
[[package]]
|
|
258
|
+
name = "phf_macros"
|
|
259
|
+
version = "0.13.1"
|
|
260
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
261
|
+
checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef"
|
|
262
|
+
dependencies = [
|
|
263
|
+
"phf_generator",
|
|
264
|
+
"phf_shared",
|
|
265
|
+
"proc-macro2",
|
|
266
|
+
"quote",
|
|
267
|
+
"syn",
|
|
268
|
+
]
|
|
269
|
+
|
|
270
|
+
[[package]]
|
|
271
|
+
name = "phf_shared"
|
|
272
|
+
version = "0.13.1"
|
|
273
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
274
|
+
checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"
|
|
275
|
+
dependencies = [
|
|
276
|
+
"siphasher",
|
|
277
|
+
]
|
|
278
|
+
|
|
279
|
+
[[package]]
|
|
280
|
+
name = "portable-atomic"
|
|
281
|
+
version = "1.11.1"
|
|
282
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
283
|
+
checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483"
|
|
284
|
+
|
|
285
|
+
[[package]]
|
|
286
|
+
name = "precomputed-hash"
|
|
287
|
+
version = "0.1.1"
|
|
288
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
289
|
+
checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
|
|
290
|
+
|
|
291
|
+
[[package]]
|
|
292
|
+
name = "proc-macro2"
|
|
293
|
+
version = "1.0.103"
|
|
294
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
295
|
+
checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8"
|
|
296
|
+
dependencies = [
|
|
297
|
+
"unicode-ident",
|
|
298
|
+
]
|
|
299
|
+
|
|
300
|
+
[[package]]
|
|
301
|
+
name = "pyo3"
|
|
302
|
+
version = "0.27.2"
|
|
303
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
304
|
+
checksum = "ab53c047fcd1a1d2a8820fe84f05d6be69e9526be40cb03b73f86b6b03e6d87d"
|
|
305
|
+
dependencies = [
|
|
306
|
+
"indoc",
|
|
307
|
+
"libc",
|
|
308
|
+
"memoffset",
|
|
309
|
+
"once_cell",
|
|
310
|
+
"portable-atomic",
|
|
311
|
+
"pyo3-build-config",
|
|
312
|
+
"pyo3-ffi",
|
|
313
|
+
"pyo3-macros",
|
|
314
|
+
"unindent",
|
|
315
|
+
]
|
|
316
|
+
|
|
317
|
+
[[package]]
|
|
318
|
+
name = "pyo3-build-config"
|
|
319
|
+
version = "0.27.2"
|
|
320
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
321
|
+
checksum = "b455933107de8642b4487ed26d912c2d899dec6114884214a0b3bb3be9261ea6"
|
|
322
|
+
dependencies = [
|
|
323
|
+
"target-lexicon",
|
|
324
|
+
]
|
|
325
|
+
|
|
326
|
+
[[package]]
|
|
327
|
+
name = "pyo3-ffi"
|
|
328
|
+
version = "0.27.2"
|
|
329
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
330
|
+
checksum = "1c85c9cbfaddf651b1221594209aed57e9e5cff63c4d11d1feead529b872a089"
|
|
331
|
+
dependencies = [
|
|
332
|
+
"libc",
|
|
333
|
+
"pyo3-build-config",
|
|
334
|
+
]
|
|
335
|
+
|
|
336
|
+
[[package]]
|
|
337
|
+
name = "pyo3-macros"
|
|
338
|
+
version = "0.27.2"
|
|
339
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
340
|
+
checksum = "0a5b10c9bf9888125d917fb4d2ca2d25c8df94c7ab5a52e13313a07e050a3b02"
|
|
341
|
+
dependencies = [
|
|
342
|
+
"proc-macro2",
|
|
343
|
+
"pyo3-macros-backend",
|
|
344
|
+
"quote",
|
|
345
|
+
"syn",
|
|
346
|
+
]
|
|
347
|
+
|
|
348
|
+
[[package]]
|
|
349
|
+
name = "pyo3-macros-backend"
|
|
350
|
+
version = "0.27.2"
|
|
351
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
352
|
+
checksum = "03b51720d314836e53327f5871d4c0cfb4fb37cc2c4a11cc71907a86342c40f9"
|
|
353
|
+
dependencies = [
|
|
354
|
+
"heck",
|
|
355
|
+
"proc-macro2",
|
|
356
|
+
"pyo3-build-config",
|
|
357
|
+
"quote",
|
|
358
|
+
"syn",
|
|
359
|
+
]
|
|
360
|
+
|
|
361
|
+
[[package]]
|
|
362
|
+
name = "quote"
|
|
363
|
+
version = "1.0.42"
|
|
364
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
365
|
+
checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f"
|
|
366
|
+
dependencies = [
|
|
367
|
+
"proc-macro2",
|
|
368
|
+
]
|
|
369
|
+
|
|
370
|
+
[[package]]
|
|
371
|
+
name = "redox_syscall"
|
|
372
|
+
version = "0.5.18"
|
|
373
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
374
|
+
checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
|
|
375
|
+
dependencies = [
|
|
376
|
+
"bitflags",
|
|
377
|
+
]
|
|
378
|
+
|
|
379
|
+
[[package]]
|
|
380
|
+
name = "rustc-hash"
|
|
381
|
+
version = "2.1.1"
|
|
382
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
383
|
+
checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"
|
|
384
|
+
|
|
385
|
+
[[package]]
|
|
386
|
+
name = "rustc_version"
|
|
387
|
+
version = "0.4.1"
|
|
388
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
389
|
+
checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
|
|
390
|
+
dependencies = [
|
|
391
|
+
"semver",
|
|
392
|
+
]
|
|
393
|
+
|
|
394
|
+
[[package]]
|
|
395
|
+
name = "rustversion"
|
|
396
|
+
version = "1.0.22"
|
|
397
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
398
|
+
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|
399
|
+
|
|
400
|
+
[[package]]
|
|
401
|
+
name = "scopeguard"
|
|
402
|
+
version = "1.2.0"
|
|
403
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
404
|
+
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
405
|
+
|
|
406
|
+
[[package]]
|
|
407
|
+
name = "scraper"
|
|
408
|
+
version = "0.25.0"
|
|
409
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
410
|
+
checksum = "93cecd86d6259499c844440546d02f55f3e17bd286e529e48d1f9f67e92315cb"
|
|
411
|
+
dependencies = [
|
|
412
|
+
"cssparser",
|
|
413
|
+
"ego-tree",
|
|
414
|
+
"getopts",
|
|
415
|
+
"html5ever",
|
|
416
|
+
"precomputed-hash",
|
|
417
|
+
"selectors",
|
|
418
|
+
"tendril",
|
|
419
|
+
]
|
|
420
|
+
|
|
421
|
+
[[package]]
|
|
422
|
+
name = "scraper-rs"
|
|
423
|
+
version = "0.1.3"
|
|
424
|
+
dependencies = [
|
|
425
|
+
"pyo3",
|
|
426
|
+
"scraper",
|
|
427
|
+
]
|
|
428
|
+
|
|
429
|
+
[[package]]
|
|
430
|
+
name = "selectors"
|
|
431
|
+
version = "0.33.0"
|
|
432
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
433
|
+
checksum = "feef350c36147532e1b79ea5c1f3791373e61cbd9a6a2615413b3807bb164fb7"
|
|
434
|
+
dependencies = [
|
|
435
|
+
"bitflags",
|
|
436
|
+
"cssparser",
|
|
437
|
+
"derive_more",
|
|
438
|
+
"log",
|
|
439
|
+
"new_debug_unreachable",
|
|
440
|
+
"phf",
|
|
441
|
+
"phf_codegen",
|
|
442
|
+
"precomputed-hash",
|
|
443
|
+
"rustc-hash",
|
|
444
|
+
"servo_arc",
|
|
445
|
+
"smallvec",
|
|
446
|
+
]
|
|
447
|
+
|
|
448
|
+
[[package]]
|
|
449
|
+
name = "semver"
|
|
450
|
+
version = "1.0.27"
|
|
451
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
452
|
+
checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
|
|
453
|
+
|
|
454
|
+
[[package]]
|
|
455
|
+
name = "serde"
|
|
456
|
+
version = "1.0.228"
|
|
457
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
458
|
+
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
|
|
459
|
+
dependencies = [
|
|
460
|
+
"serde_core",
|
|
461
|
+
]
|
|
462
|
+
|
|
463
|
+
[[package]]
|
|
464
|
+
name = "serde_core"
|
|
465
|
+
version = "1.0.228"
|
|
466
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
467
|
+
checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
|
|
468
|
+
dependencies = [
|
|
469
|
+
"serde_derive",
|
|
470
|
+
]
|
|
471
|
+
|
|
472
|
+
[[package]]
|
|
473
|
+
name = "serde_derive"
|
|
474
|
+
version = "1.0.228"
|
|
475
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
476
|
+
checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
|
|
477
|
+
dependencies = [
|
|
478
|
+
"proc-macro2",
|
|
479
|
+
"quote",
|
|
480
|
+
"syn",
|
|
481
|
+
]
|
|
482
|
+
|
|
483
|
+
[[package]]
|
|
484
|
+
name = "servo_arc"
|
|
485
|
+
version = "0.4.3"
|
|
486
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
487
|
+
checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930"
|
|
488
|
+
dependencies = [
|
|
489
|
+
"stable_deref_trait",
|
|
490
|
+
]
|
|
491
|
+
|
|
492
|
+
[[package]]
|
|
493
|
+
name = "siphasher"
|
|
494
|
+
version = "1.0.1"
|
|
495
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
496
|
+
checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d"
|
|
497
|
+
|
|
498
|
+
[[package]]
|
|
499
|
+
name = "smallvec"
|
|
500
|
+
version = "1.15.1"
|
|
501
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
502
|
+
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
|
|
503
|
+
|
|
504
|
+
[[package]]
|
|
505
|
+
name = "stable_deref_trait"
|
|
506
|
+
version = "1.2.1"
|
|
507
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
508
|
+
checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
|
|
509
|
+
|
|
510
|
+
[[package]]
|
|
511
|
+
name = "string_cache"
|
|
512
|
+
version = "0.9.0"
|
|
513
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
514
|
+
checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901"
|
|
515
|
+
dependencies = [
|
|
516
|
+
"new_debug_unreachable",
|
|
517
|
+
"parking_lot",
|
|
518
|
+
"phf_shared",
|
|
519
|
+
"precomputed-hash",
|
|
520
|
+
"serde",
|
|
521
|
+
]
|
|
522
|
+
|
|
523
|
+
[[package]]
|
|
524
|
+
name = "string_cache_codegen"
|
|
525
|
+
version = "0.6.1"
|
|
526
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
527
|
+
checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69"
|
|
528
|
+
dependencies = [
|
|
529
|
+
"phf_generator",
|
|
530
|
+
"phf_shared",
|
|
531
|
+
"proc-macro2",
|
|
532
|
+
"quote",
|
|
533
|
+
]
|
|
534
|
+
|
|
535
|
+
[[package]]
|
|
536
|
+
name = "syn"
|
|
537
|
+
version = "2.0.111"
|
|
538
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
539
|
+
checksum = "390cc9a294ab71bdb1aa2e99d13be9c753cd2d7bd6560c77118597410c4d2e87"
|
|
540
|
+
dependencies = [
|
|
541
|
+
"proc-macro2",
|
|
542
|
+
"quote",
|
|
543
|
+
"unicode-ident",
|
|
544
|
+
]
|
|
545
|
+
|
|
546
|
+
[[package]]
|
|
547
|
+
name = "target-lexicon"
|
|
548
|
+
version = "0.13.3"
|
|
549
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
550
|
+
checksum = "df7f62577c25e07834649fc3b39fafdc597c0a3527dc1c60129201ccfcbaa50c"
|
|
551
|
+
|
|
552
|
+
[[package]]
|
|
553
|
+
name = "tendril"
|
|
554
|
+
version = "0.4.3"
|
|
555
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
556
|
+
checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0"
|
|
557
|
+
dependencies = [
|
|
558
|
+
"futf",
|
|
559
|
+
"mac",
|
|
560
|
+
"utf-8",
|
|
561
|
+
]
|
|
562
|
+
|
|
563
|
+
[[package]]
|
|
564
|
+
name = "unicode-ident"
|
|
565
|
+
version = "1.0.22"
|
|
566
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
567
|
+
checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
|
|
568
|
+
|
|
569
|
+
[[package]]
|
|
570
|
+
name = "unicode-width"
|
|
571
|
+
version = "0.2.2"
|
|
572
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
573
|
+
checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
|
|
574
|
+
|
|
575
|
+
[[package]]
|
|
576
|
+
name = "unindent"
|
|
577
|
+
version = "0.2.4"
|
|
578
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
579
|
+
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
|
580
|
+
|
|
581
|
+
[[package]]
|
|
582
|
+
name = "utf-8"
|
|
583
|
+
version = "0.7.6"
|
|
584
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
585
|
+
checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
|
|
586
|
+
|
|
587
|
+
[[package]]
|
|
588
|
+
name = "web_atoms"
|
|
589
|
+
version = "0.2.0"
|
|
590
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
591
|
+
checksum = "acd0c322f146d0f8aad130ce6c187953889359584497dac6561204c8e17bb43d"
|
|
592
|
+
dependencies = [
|
|
593
|
+
"phf",
|
|
594
|
+
"phf_codegen",
|
|
595
|
+
"string_cache",
|
|
596
|
+
"string_cache_codegen",
|
|
597
|
+
]
|
|
598
|
+
|
|
599
|
+
[[package]]
|
|
600
|
+
name = "windows-link"
|
|
601
|
+
version = "0.2.1"
|
|
602
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
603
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "scraper-rs"
|
|
3
|
+
version = "0.1.3"
|
|
4
|
+
edition = "2024"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
|
|
7
|
+
[lib]
|
|
8
|
+
name = "scraper_rs"
|
|
9
|
+
crate-type = ["cdylib"]
|
|
10
|
+
|
|
11
|
+
[dependencies]
|
|
12
|
+
pyo3 = { version = "0.27", features = ["extension-module", "abi3-py310"] }
|
|
13
|
+
scraper = "0.25"
|
|
14
|
+
|
|
15
|
+
[profile.release]
|
|
16
|
+
lto = true
|
|
17
|
+
codegen-units = 1
|
|
18
|
+
opt-level = "z"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: scraper-rust
|
|
3
|
+
Version: 0.1.3
|
|
4
|
+
Classifier: Programming Language :: Python
|
|
5
|
+
Classifier: Programming Language :: Python :: 3
|
|
6
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
7
|
+
Classifier: Programming Language :: Rust
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
13
|
+
Requires-Dist: maturin ; extra == 'dev'
|
|
14
|
+
Requires-Dist: pytest ; extra == 'dev'
|
|
15
|
+
Provides-Extra: dev
|
|
16
|
+
Summary: Python bindings around rust-scraper/scraper with PyO3
|
|
17
|
+
Author-email: Yehor Smoliakov <egorsmkv@gmail.com>
|
|
18
|
+
Requires-Python: >=3.10
|