Skip to content

Version 0.8.0

Compare
Choose a tag to compare
@moy moy released this 01 Oct 15:23
· 418 commits to main since this release

Main changes:

  • Browser and StatefulBrowser can now be configured to raise a
    LinkNotFound exception when encountering a 404 Not Found error.
    This is activated by passing raise_on_404=True to the constructor.
    It is disabled by default for backward compatibility, but is highly
    recommanded.

  • Browser now has a __del__ method that closes the current session
    when the object is deleted.

  • A Link object can now be passed to follow_link.

  • The user agent can now be customized. The default includes
    MechanicalSoup and its version.

  • There is now a direct interface to the cookiejar in *Browser
    classes ((set|get)_cookiejar methods).

  • This is the last MechanicalSoup version supporting Python 2.6 and 3.3.

Bug fixes:

  • We used to crash on forms without action="..." fields.

  • The choose_submit method has been fixed, and the btnName
    argument of StatefulBrowser.submit_selected is now a shortcut for
    using choose_submit.

  • Arguments to open_relative were not properly forwarded.

Internal changes: