v0.1.2
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:
previously would result in this because of Lxml default behavior but now it would return the full text 'CONDITION: Excellent'
>>> page = Adaptor('<span>CONDITION: <!-- -->Excellent</span>', keep_comments=True) >>> page.css('span::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.