MechanicalSoup v0.11.0 Release Notes

Release Date: 2018-09-11 // about 3 years ago
  • ๐Ÿ“š This release focuses on fixing bugs related to uncommon HTTP/HTML scenarios and on improving the documentation.

    ๐Ÿ› Bug fixes

    ๐Ÿ—„ Constructing a Form instance from a bs4.element.Tag whose tag name is not form will now emit a warning, and may be deprecated in the future. [#228]

    ๐Ÿ’ฅ Breaking Change: LinkNotFoundError now derives from Exception instead of BaseException. While this will bring the behavior in line with most people's expectations, it may affect the behavior of your code if you were heavily relying on this implementation detail in your exception handling. [#203]

    ๐Ÿ‘Œ Improve handling of button submit elements. Will now correctly ignore buttons of type button and reset during form submission, since they are not considered to be submit elements. [#199]

    ๐Ÿ‘ท Do a better job of inferring the content type of a response if the Content-Type header is not provided. [#195]

    ๐Ÿ‘Œ Improve consistency of query string construction between MechanicalSoup and web browsers in edge cases where form elements have duplicate name attributes. This prevents errors in valid use cases, and also makes MechanicalSoup more tolerant of invalid HTML. [#158]