robobrowser

Setting a plain checkbox with robobrowser

左心房为你撑大大i 提交于 2019-12-04 18:42:41
I am struggling to check a simple checkbox with robobrowser to discard all messages in mailman. form['discardalldefersp'].options returns ['0'] , neither form['discardalldefersp'].value= True nor form['discardalldefersp'].value = '1' delivers a result. I only get 'ValueError: Option 1 not found in field ' How can I set the checkbox? My code for the whole thing is as following: import robobrowser pw = '<password>' browser = RoboBrowser(history=True) browser.open('<mailmanlist>') form = browser.get_form(action='/mailman/admindb/<listname>') form['adminpw'].value = pw browser.submit_form(form)

Python - Requests/RoboBrowser - ASPX POST JavaScript

邮差的信 提交于 2019-11-30 23:50:29
I am porting a bash script that uses curl and POSTs the payloads in the code to the URL's and works. The basic issue is that, with robobrowser, I'm running into trouble posting using the page forms. Stepping through the site: Login to /SubLogin.aspx Successful login redirects /OptionsSummary.aspx GET /FindMe.aspx with params POST /FindMe.aspx button "Phone Lists" (page should then load "Phone Lists" table with a item "Work") Selecting the "Work" item executes a POST to /PhoneLists.aspx (this should then load a table "Work" with list of users. I have been able to successfully authenticate to

Python - Requests/RoboBrowser - ASPX POST JavaScript

一曲冷凌霜 提交于 2019-11-30 18:20:41
问题 I am porting a bash script that uses curl and POSTs the payloads in the code to the URL's and works. The basic issue is that, with robobrowser, I'm running into trouble posting using the page forms. Stepping through the site: Login to /SubLogin.aspx Successful login redirects /OptionsSummary.aspx GET /FindMe.aspx with params POST /FindMe.aspx button "Phone Lists" (page should then load "Phone Lists" table with a item "Work") Selecting the "Work" item executes a POST to /PhoneLists.aspx (this