1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387
|
# selectolax Changelog
# Version 0.4.6
- Fix HTML parsing in fragment parser for `LexborHTMLParser`
- Fix memory leak in fragment parser
- Improve `skip_empty` parameter for text methods
- Add `comment_content` method
- Minor performance optimizations
- Add `create_tag` method to `LexborHTMLParser`
- Fix advanced selector (`.select()`) when attributes are empty.
# Version 0.4.5
- Broken release. Not published to PyPi.
# Version 0.4.4
- Add `is_fragment` parameter to `LexborHTMLParser` @pygarap
- Add the ability to skip empty text nodes for lexbor backend to `.text`, `.iter`, `.traverse` @pygarap
- Add new properties to lexbor backend: `is_element_node`, `is_text_node`, `is_comment_node`, `is_document_node`. @pygarap
- Update `lexbor` library
# Version 0.4.3
- Update `lexbor` library
- Fix missing description on PyPi.
# Version 0.4.2
- Broken release. Not published to PyPi.
# Version 0.4.1
- Fix parsing of CSS selectors that contain Unicode characters.
# Version 0.4.0
- Fix incorrect default value in docstrings for strict argument
- Fix incorrect exception handling for `any_css_matches`
- Fix docstring for `css_first` method
- Fix memory leak in `merge_text_nodes` for lexbor backend
- Update lexbor backend
- Add `.inner_html` property. Allows to get and set inner HTML of a node.
- Update various docstrings.
- Optimize performance for`css_first` in lexbor backend
- Fix segfaults when accessing attributes. Resolves #135.
- Add new `.clone` method to lexbor backend. Resolve #117.
- Improve unicode handling for malformed text. Resolves #138.
- Fix segfaults when doing double `.decompose`. Resolves #179.
- Fix sefgaults when doing double `.unwrap`. Resolves #169.
- Fix typo for tag names. Clarify available tag names.
## Version 0.3.34
Released
- Lexbor backend now supports `:lexbor-contains("abc" i)` CSS pseudo-class to match text nodes.
## Version 0.3.33
Released
- Add `merge_text_nodes` to lexbor backend. Fixes #170. @amirshukayev
- Performance improvements in Cython code. @Vizonex
## Version 0.3.32
Released
- Update lexbor. New version of lexbor fixes bugs with CSS selectors.
## Version 0.3.31
Released
- Improve type hints, add docstrings to type hints
- Prevent decomposing of the root node
- Unpin Cython version and make it Optional
- Allow empty attribute values. Fixes #165.
## Version 0.3.30
Released
- Update lexbor
- Expose `SelectolaxError` exception in lexbor.pyi
## Version 0.3.29
Released
- Feat: Add unwrap empty tags functionality. Fixes #159.
## Version 0.3.28
Released
- Fix: Update lexbor and improve HTML serialization speed. Fixes #153.
- Fix: typo in type annotations. Fixes #147.
- Fix: Fix incorrect type annotations for `LexborHTMLParser.__init__`. Fixes #144.
## Version 0.3.27
Released
- Fix: Header detected as head
## Version 0.3.26
Released
- Improve type hints
## Version 0.3.25
Released
- Feat: Add `parse_fragment()` and `create_tag()`
- Add missing typing for `Node.insert_child()`
- Add `Node.parser` to access the `HTMLParser` to which the node belongs
## Version 0.3.24
Released
- Add `Node.insert_child` method to lexbor and modest backends
## Version 0.3.23
Released
- Add Python 3.13 wheels
- Update lexbor
## Version 0.3.21
Released
- ***Breaking change***: `lexbor` backend now includes the root node when querying CSS selectors. Same as `Modest` backend.
- Fix `css_matches` and `any_css_matches` methods for `Modest` backend on some compilers
## Version 0.3.20
Released
- Fixup for 0.3.19 release
- Fix tag order for `lexbor` backend
## Version 0.3.19
Released
- Increase maximum HTML size to 2.4GB
## Version 0.3.18
Released
- Fix memory leak when using CSS selectors, `lexbor` backend
## Version 0.3.17
Released
- Update lexbor
- Add Python 3.12 wheels
## Version 0.3.16
Released
- Make HTML nodes hashable
- Pin Cython version
## Version 0.3.15
Released
- Improve typing. Thanks to @nesb1
## Version 0.3.14
Released
- Fix memory leak for `lexbor` backend
## Version 0.3.13
Released
- Update `lexbor`
## Version 0.3.12
Released
- Update `lexbor`
- Add Python 3.11 wheels
## Version 0.3.11
Released
- Fix out-of-bounds bug for `merge_text_nodes` method.
## Version 0.3.10
Released
This release does not contain any changes.
Due to a typo in the version number ([#70](https://github.com/rushter/selectolax/issues/70)), we need to make a new release.
## Version 0.3.9
Released
- Remove trailing separator when using `text(deep=True, separator='x')`.
- Add a new `merge_text_nodes` method for Modest backend.
## Version 0.3.8
Released
- Fix incorrect text handling when using `text(deep=True)` on a text node.
## Version 0.3.7
Released
- Fix return type of HTMLParser.tags
## Version 0.3.6
Released
- Improve text handling
- Add binary builds for Python 3.10 and ARM on MacOS and Linux
## Version 0.3.5
Released
- Add type annotations
## Version 0.3.4
Released
- Fix `HTMLParser.html`
## Version 0.3.3
Released
- Use `document` for the `HTMLParser.html`, `LexborHTMLParser.html` root properties
## Version 0.3.2
Released
- Fix `selector` method for lexbor
- Improve text extraction for lexbor
## Version 0.3.1
Released
- Fix `setup.py` for Windows
## Version 0.3.0
Released
- Added `lexbor` backend
- Fix cloning for `Modest` backend
## Version 0.2.14
Released
- Added advanced Selector (the `select` method)
- Improved speed of `strip_tags`
- Added `clone` method for the `HtmlParser` object
- Exposed `detect_encoding`, `decode_errors`, `use_meta_tags`, `raw_html` attributes for `HtmlParser`
- Added `sget` method to the `attrs` property
## Version 0.2.13
Released
- Don't throw exception when encoding text as UTF-8 bytes fails ([#40](https://github.com/rushter/selectolax/issues/40)).
- Fix Node.attrs.items() causes ([#39](https://github.com/rushter/selectolax/issues/39)).
## Version 0.2.12
Released
- Build wheels Apple Silicon
## Version 0.2.11
Released
- Fix strip argument is ignored for the root node ([#35](https://github.com/rushter/selectolax/issues/35)).
- Fix CSS parser hangs on a bad CSS selector ([#36](https://github.com/rushter/selectolax/issues/36)).
## Version 0.2.10
Released
- Fix root node property ([#32](https://github.com/rushter/selectolax/issues/32)). The `root` property now points to the html tag.
## Version 0.2.9
Released
- Fix README for PyPI
## Version 0.2.8
Released
- Add wheels for Python 3.9
## Version 0.2.7
Released
- Add `raw_value` attribute for `Node` objects ([#22](https://github.com/rushter/selectolax/issues/22))
- Improve node modification operations
## Version 0.2.6
Released
- Fix dependency on the source `Node` when inserting to or modifying destination `Node`
## Version 0.2.5
Released
- Allow to pass Node instances to `replace_with`, `insert_before` and `insert_after` methods
- Added `insert_before` and `insert_after` methods
## Version 0.2.4
Released
- Set maximum input size to 80MB
- Update modest
## Version 0.2.3
Released
- Rebuild PyPi wheels to support Python 3.8 and manylinux2010
## Version 0.2.2
Released
- Fix node comparison
## Version 0.2.1
Released
- Add optional `include_text` parameter for the `iter` and `traverse` methods
## Version 0.2.0
Released
- Fix `iter()` does not yield text nodes
- Switch from TravisCI to Github Actions
- Build and ship wheels for Windows, MacOS and Linux using Azure Pipelines
- Add `unwrap` and `unwrap_tags` method ([#7](https://github.com/rushter/selectolax/issues/7))
- Add `replace_with` method ([#13](https://github.com/rushter/selectolax/issues/13))
- Add `attrs` property
- Add `traverse` method
|