MechanicalSoup v0.10.0 Release Notes

Release Date: 2018-02-04 // over 6 years ago
  • Main changes:

    โž• Added StatefulBrowser.refresh() to reload the current page with the same request. [#188]

    ๐Ÿ”— StatefulBrowser.follow_link, StatefulBrowser.submit_selected() and the new StatefulBrowser.download_link now sets the Referer: HTTP header to the page from which the link is followed. [#179]

    โž• Added method StatefulBrowser.download_link, which will download the contents of a link to a file without changing the state of the browser. [#170]

    ๐Ÿ’ป The selector argument of Browser.select_form can now be a bs4.element.Tag in addition to a CSS selector. [#169]

    ๐Ÿ’ป Browser.submit and StatefulBrowser.submit_selected accept a larger number of keyword arguments. Arguments are forwarded to requests.Session.request. [#166]

    Internal changes:

    ๐Ÿ’ป StatefulBrowser.choose_submit will now ignore input elements that are missing a name-attribute instead of raising a KeyError. [#180]

    ๐Ÿ— Private methods Browser._build_request and Browser._prepare_request have been replaced by a single method Browser._request. [#166]