To install the latest version of gazpacho run:
pip install -U gazpacho
de-type the entire library (false promise)
- Fix: headers issue (user agent) thanks for pointing out /u/lazerwarrior
- Fix: format() with void tags, credit: @mickm3n
- Fix: mypy typing issue in get, credit: @mickm3n
- Fix: .text works immediately on object creation now, credit: @vyshakhj
- Feature: now PEP 561 compliant
- Feature:
Soup
now automatically formats and indents (pretty print) HTML where possible
- Feature: gazpacho is now fully baked with type hints (thanks for the suggestion @ju-sh!)
- Feature:
Soup.get("url")
alternative initializer - Fixed:
.find
is now able to capture malformed void tags (<img />
, vs.<img>
) (thanks for the Issue @mallegrini!) - Renamed:
.find(..., strict=)
is nowfind(..., partial=)
- Renamed:
.remove_tags
is now.strip
- Feature: automagical json-to-dictionary return behaviour for
get
- Improvement: automatic missing URL protocol inference for
get
- Improvement: condensed HTTPError Exceptions
- Updated the README (thanks for flagging the
lxml
error, @koaning!)
- Fixed
find(..., mode='first')
to returnNone
and not anIndexError
(thanks, @psyonara!)
- Fixed
UnicodeEncodeError
lurking beneathget
(thanks for the "Issue" @mlehotay!) - Fixed
find
method to properly handle non-closing HTML tags
- Added the
remove_tags
method for isolating formatted text in a block of HTML
- Fixed empty element tag counting within the
find
method
- Added mode argument to the
find
method to adjust return behaviour (defaults tomode='auto'
) - Enabled strict attribute matching for the
find
method (defaults tostrict=False
)