beautifulsoup4 breaking changes
beautifulsoup4 4.15.0 (June 7, 2026) is its newest release with breaking changes, 18 of them. The first: Removed bs4.dammit.EntitySubstitution.CHARACTER_TO_HTML_ENTITY. Every breaking API change we have recorded in beautifulsoup4 on PyPI: 137 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.15.0, released June 7, 2026.
Packages on PyPI run on Python. Python end of life dates.
beautifulsoup4 4.15.0 breaking changes
- Removed
bs4.dammit.EntitySubstitution.CHARACTER_TO_HTML_ENTITY
bs4.dammit.EntitySubstitution.CHARACTER_TO_HTML_ENTITY was removed in beautifulsoup4 4.15.0 pypi.org - Removed
bs4.dammit.EntitySubstitution.CHARACTER_TO_HTML_ENTITY_RE
bs4.dammit.EntitySubstitution.CHARACTER_TO_HTML_ENTITY_RE was removed in beautifulsoup4 4.15.0 pypi.org - Removed
bs4.dammit.EntitySubstitution.CHARACTER_TO_HTML_ENTITY_WITH_AMPERSAND_RE
bs4.dammit.EntitySubstitution.CHARACTER_TO_HTML_ENTITY_WITH_AMPERSAND_RE was removed in beautifulsoup4 4.15.0 pypi.org - Removed
bs4.dammit.EntitySubstitution.HTML_ENTITY_TO_CHARACTER
bs4.dammit.EntitySubstitution.HTML_ENTITY_TO_CHARACTER was removed in beautifulsoup4 4.15.0 pypi.org - Signature changed
bs4.element.PageElement.find_all_next
Was def find_all_next(self, name: _FindMethodName = None, attrs: Optional[_StrainableAttributes] = None, string: Optional[_StrainableString] = None, limit: Optional[int] = None, _stacklevel: int = 2, **kwargs: _StrainableAttribute) ->... pypi.org - Signature changed
bs4.element.PageElement.find_all_previous
Was def find_all_previous(self, name: _FindMethodName = None, attrs: Optional[_StrainableAttributes] = None, string: Optional[_StrainableString] = None, limit: Optional[int] = None, _stacklevel: int = 2, **kwargs: _StrainableAttribute) ->... pypi.org - Signature changed
bs4.element.PageElement.find_next
Was def find_next(self, name: _FindMethodName = None, attrs: Optional[_StrainableAttributes] = None, string: Optional[_StrainableString] = None, **kwargs: _StrainableAttribute) -> Union[_AtMostOneTag, _AtMostOneNavigableString... pypi.org - Signature changed
bs4.element.PageElement.find_next_sibling
Was def find_next_sibling(self, name: _FindMethodName = None, attrs: Optional[_StrainableAttributes] = None, string: Optional[_StrainableString] = None, **kwargs: _StrainableAttribute) -> Union[_AtMostOneTag, _AtMostOneNavigableString... pypi.org - Signature changed
bs4.element.PageElement.find_next_siblings
Was def find_next_siblings(self, name: _FindMethodName = None, attrs: Optional[_StrainableAttributes] = None, string: Optional[_StrainableString] = None, limit: Optional[int] = None, _stacklevel: int = 2, **kwargs: _StrainableAttribute) ->... pypi.org - Signature changed
bs4.element.PageElement.find_parent
Was def find_parent(self, name: _FindMethodName = None, attrs: Optional[_StrainableAttributes] = None, **kwargs: _StrainableAttribute) -> _AtMostOneTag; now def find_parent(self, name: _OptionalFindMethodName = None, attrs... pypi.org - Signature changed
bs4.element.PageElement.find_parents
Was def find_parents(self, name: _FindMethodName = None, attrs: Optional[_StrainableAttributes] = None, limit: Optional[int] = None, _stacklevel: int = 2, **kwargs: _StrainableAttribute) -> _SomeTags; now def find_parents(self, name... pypi.org - Signature changed
bs4.element.PageElement.find_previous
Was def find_previous(self, name: _FindMethodName = None, attrs: Optional[_StrainableAttributes] = None, string: Optional[_StrainableString] = None, **kwargs: _StrainableAttribute) -> Union[_AtMostOneTag, _AtMostOneNavigableString... pypi.org - Signature changed
bs4.element.PageElement.find_previous_sibling
Was def find_previous_sibling(self, name: _FindMethodName = None, attrs: Optional[_StrainableAttributes] = None, string: Optional[_StrainableString] = None, **kwargs: _StrainableAttribute) -> Union[_AtMostOneTag, _AtMostOneNavigableString... pypi.org - Signature changed
bs4.element.PageElement.find_previous_siblings
Was def find_previous_siblings(self, name: _FindMethodName = None, attrs: Optional[_StrainableAttributes] = None, string: Optional[_StrainableString] = None, limit: Optional[int] = None, _stacklevel: int = 2, **kwargs... pypi.org - Signature changed
bs4.Tag.__call__
Was def __call__(self, name: _FindMethodName = None, attrs: Optional[_StrainableAttributes] = None, recursive: bool = True, string: Optional[_StrainableString] = None, limit: Optional[int] = None, _stacklevel: int = 2, **kwargs... pypi.org - Signature changed
bs4.Tag.append
Was def append(self, tag: _InsertableElement) -> PageElement; now def append(self, tag: _InsertableElement) -> PageElement | List[PageElement]. pypi.org - Signature changed
bs4.Tag.find
Was def find(self, name: _FindMethodName = None, attrs: Optional[_StrainableAttributes] = None, recursive: bool = True, string: Optional[_StrainableString] = None, **kwargs: _StrainableAttribute) -> Union[_AtMostOneTag... pypi.org - Signature changed
bs4.Tag.find_all
Was def find_all(self, name: _FindMethodName = None, attrs: Optional[_StrainableAttributes] = None, recursive: bool = True, string: Optional[_StrainableString] = None, limit: Optional[int] = None, _stacklevel: int = 2, **kwargs... pypi.org
beautifulsoup4 4.14.2 breaking changes
- Removed
bs4.ResultSet.__delitem__
ResultSet.__delitem__ was removed in beautifulsoup4 4.14.2 pypi.org - Removed
bs4.ResultSet.__eq__
ResultSet.__eq__ was removed in beautifulsoup4 4.14.2 pypi.org - Removed
bs4.ResultSet.__getitem__
ResultSet.__getitem__ was removed in beautifulsoup4 4.14.2 pypi.org - Removed
bs4.ResultSet.__len__
ResultSet.__len__ was removed in beautifulsoup4 4.14.2 pypi.org - Removed
bs4.ResultSet.__setitem__
ResultSet.__setitem__ was removed in beautifulsoup4 4.14.2 pypi.org - Removed
bs4.ResultSet.insert
ResultSet.insert was removed in beautifulsoup4 4.14.2 pypi.org - Removed
bs4.ResultSet.result
ResultSet.result was removed in beautifulsoup4 4.14.2 pypi.org - Signature changed
bs4.ResultSet
Was class ResultSet(MutableSequence[_PageElementT], Generic[_PageElementT]); now class ResultSet(List[_PageElementT], Generic[_PageElementT]). pypi.org - Signature changed
bs4.ResultSet.__init__
Was def __init__(self, source: Optional[ElementFilter], result: MutableSequence[_PageElementT] = []) -> None; now def __init__(self, source: Optional[ElementFilter], result: Iterable[_PageElementT] = ()) -> None. pypi.org
beautifulsoup4 4.14.1 breaking changes
- Signature changed
bs4.ResultSet
Was class ResultSet(Sequence[_PageElementT], Generic[_PageElementT]); now class ResultSet(MutableSequence[_PageElementT], Generic[_PageElementT]). pypi.org - Signature changed
bs4.ResultSet.__init__
Was def __init__(self, source: Optional[ElementFilter], result: Sequence[_PageElementT] = ()) -> None; now def __init__(self, source: Optional[ElementFilter], result: MutableSequence[_PageElementT] = []) -> None. pypi.org - Signature changed
bs4.ResultSet.result
Was result: Sequence[_PageElementT]; now result: MutableSequence[_PageElementT]. pypi.org
beautifulsoup4 4.14.0 breaking changes
- Signature changed
bs4.element.PageElement.find_all_next
Was def find_all_next(self, name: _FindMethodName = None, attrs: _StrainableAttributes = {}, string: Optional[_StrainableString] = None, limit: Optional[int] = None, _stacklevel: int = 2, **kwargs: _StrainableAttribute) -> _QueryResults... pypi.org - Signature changed
bs4.element.PageElement.find_all_previous
Was def find_all_previous(self, name: _FindMethodName = None, attrs: _StrainableAttributes = {}, string: Optional[_StrainableString] = None, limit: Optional[int] = None, _stacklevel: int = 2, **kwargs: _StrainableAttribute) ->... pypi.org - Signature changed
bs4.element.PageElement.find_next
Was def find_next(self, name: _FindMethodName = None, attrs: _StrainableAttributes = {}, string: Optional[_StrainableString] = None, **kwargs: _StrainableAttribute) -> _AtMostOneElement; now def find_next(self, name: _FindMethodName =... pypi.org - Signature changed
bs4.element.PageElement.find_next_sibling
Was def find_next_sibling(self, name: _FindMethodName = None, attrs: _StrainableAttributes = {}, string: Optional[_StrainableString] = None, **kwargs: _StrainableAttribute) -> _AtMostOneElement; now def find_next_sibling(self, name... pypi.org - Signature changed
bs4.element.PageElement.find_next_siblings
Was def find_next_siblings(self, name: _FindMethodName = None, attrs: _StrainableAttributes = {}, string: Optional[_StrainableString] = None, limit: Optional[int] = None, _stacklevel: int = 2, **kwargs: _StrainableAttribute) ->... pypi.org - Signature changed
bs4.element.PageElement.find_parent
Was def find_parent(self, name: _FindMethodName = None, attrs: _StrainableAttributes = {}, **kwargs: _StrainableAttribute) -> _AtMostOneElement; now def find_parent(self, name: _FindMethodName = None, attrs: Optional[_StrainableAttributes]... pypi.org - Signature changed
bs4.element.PageElement.find_parents
Was def find_parents(self, name: _FindMethodName = None, attrs: _StrainableAttributes = {}, limit: Optional[int] = None, _stacklevel: int = 2, **kwargs: _StrainableAttribute) -> _QueryResults; now def find_parents(self, name... pypi.org - Signature changed
bs4.element.PageElement.find_previous
Was def find_previous(self, name: _FindMethodName = None, attrs: _StrainableAttributes = {}, string: Optional[_StrainableString] = None, **kwargs: _StrainableAttribute) -> _AtMostOneElement; now def find_previous(self, name... pypi.org - Signature changed
bs4.element.PageElement.find_previous_sibling
Was def find_previous_sibling(self, name: _FindMethodName = None, attrs: _StrainableAttributes = {}, string: Optional[_StrainableString] = None, **kwargs: _StrainableAttribute) -> _AtMostOneElement; now def find_previous_sibling(self... pypi.org - Signature changed
bs4.element.PageElement.find_previous_siblings
Was def find_previous_siblings(self, name: _FindMethodName = None, attrs: _StrainableAttributes = {}, string: Optional[_StrainableString] = None, limit: Optional[int] = None, _stacklevel: int = 2, **kwargs: _StrainableAttribute) ->... pypi.org
And 6 more in this version. Sign up to see every change
beautifulsoup4 4.13.5 breaking changes
- Removed
bs4.tests
bs4.tests was removed in beautifulsoup4 4.13.5 pypi.org - Signature changed
bs4.builder.HTMLTreeBuilder.DEFAULT_EMPTY_ELEMENT_TAGS
Was DEFAULT_EMPTY_ELEMENT_TAGS: Set[str]; now DEFAULT_EMPTY_ELEMENT_TAGS: Optional[Set[str]]. pypi.org - Signature changed
bs4.element.PageElement.replace_with
Was def replace_with(self, *args: PageElement) -> Self; now def replace_with(self, *args: _InsertableElement) -> Self. pypi.org - Signature changed
bs4.filter.AttributeValueMatchRule.function
Was function: Optional[_StringMatchFunction]; now function: Optional[_NullableStringMatchFunction]. pypi.org
beautifulsoup4 4.13.2 breaking changes
- Signature changed
bs4.ElementFilter.match
Was def match(self, element: PageElement) -> bool; now def match(self, element: PageElement, _known_rules: bool = False) -> bool. pypi.org - Signature changed
bs4.filter.MatchRule.__init__
Was def __init__(self, string: Optional[Union[str, bytes]] = None, pattern: Optional[_RegularExpressionProtocol] = None, function: Optional[Callable] = None, present: Optional[bool] = None); now def __init__(self, string... pypi.org
Older versions
1 older version, each with its first changes. Sign up to see every change
Show 1 older version
beautifulsoup4 4.13.1 breaking changes
- Removed
bs4.BeautifulSoup.NO_PARSER_SPECIFIED_WARNING
bs4.BeautifulSoup.NO_PARSER_SPECIFIED_WARNING was removed in beautifulsoup4 4.13.1 pypi.org - Removed
bs4.builder.HTMLTreeBuilder.block_elements
HTMLTreeBuilder.block_elements was removed in beautifulsoup4 4.13.1 pypi.org
And 83 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.