rvest: how to submit form when input doesn't have a name?
问题 I have a simple problem and I don't know how to settle it. I want to fill a form using rvest where the input have no name: library(rvest) session <- html_session("https://www.tripadvisor.com/") pgform <- html_form(session)[[1]] > pgform <form> 'global_nav_search_form' (GET /Search) <input search> '': <input text> '': <button submit> 'sub-search <input hidden> 'geo': 1 <input hidden> 'latitude': <input hidden> 'longitude': <input hidden> 'searchNearby': <input hidden> 'pid': 3826 <input hidden