mercredi 17 août 2016

rvest and checkboxes with form

I'm trying to automate queries to PsycARTICLES database available in EBSCO.

using rvest I have gotten to database selection which is a list of databases with checkboxes. I'm unsure how can I switch the checkboxes using rvest or how to figure out what to POST to get to the search page I want.

There is a link on the database selection page pointing exactly to what I want but unfortunately it does this through javascript

javascript:__doPostBack('ctl00$ctl00$MainContentArea$MainContentArea$SelectDbControl$dbList$ctl22$ctl00$titleLink','')

I am not versed at all how form submission works but I suppose that there should be a way to make rvest do the same POST as this javascript snippet is doing?




Aucun commentaire:

Enregistrer un commentaire