MechanicalSoup v0.10.0 Release Notes
Release Date: 2018-02-04 // about 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 newStatefulBrowser.download_link
now sets theReferer:
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 ofBrowser.select_form
can now be a bs4.element.Tag in addition to a CSS selector. [#169]๐ป
Browser.submit
andStatefulBrowser.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 aKeyError
. [#180]๐ Private methods
Browser._build_request
andBrowser._prepare_request
have been replaced by a single methodBrowser._request
. [#166]