MechanicalSoup v0.8.0 Release Notes

Release Date: 2017-10-01 // over 6 years ago
  • 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.
    0๏ธโƒฃ 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.

    0๏ธโƒฃ 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:

    โœ… The testsuite has been greatly improved. It now uses the pytest API
    โœ… (not only the pytest launcher) for more concise code.

    โœ… The coverage of the testsuite is now measured with codecov.io. The
    results can be viewed on:
    https://codecov.io/gh/hickford/MechanicalSoup

    We now have a requires.io badge to help us tracking issues with
    dependencies. The report can be viewed on:
    https://requires.io/github/hickford/MechanicalSoup/requirements/

    The version number now appears in a single place in the source code.