Skip to content

v0.1.2

Compare
Choose a tag to compare
@D4Vinci D4Vinci released this 16 Oct 16:44
· 179 commits to main since this release

Changelog:

  • Fixed a bug where the keep_comments argument is not working as intended.
  • Adjusted the text function to automatically remove HTML comments from elements before extracting its text to prevent Lxml different behavior, for example:
    >>> page = Adaptor('<span>CONDITION: <!-- -->Excellent</span>', keep_comments=True)
    >>> page.css('span::text')
    ['CONDITION: ', 'Excellent']
    previously would result in this because of Lxml default behavior but now it would return the full text 'CONDITION: Excellent'
    This behavior is known with parsel\scrapy as well so wanted to handle it here.
  • Fixed a bug where the SQLite db file created by the library is not deleted when doing pip uninstall scrapling or similar.