It is time for the first one here :)
Currently working with Tripadvisor (retrieving with rvest and RSelenium) and want to get information about each particular review evaluation on pages of users. Unfortunately, not every review has an attribute "Helpfull vote". Therefore, when i try to combine the dataframe i have an error that "arguments imply differing number of rows: 31, 3". So I think, i have to manage to get NAs instead of missing values for non-evaluated reviews but my attempts have been not successful so far.
My code example:
`
likes <- url %>%
html_nodes(".social-statistics-bar-SocialStatisticsBar__item--2IlT7") %>%
html_text()
reviewdates <- url %>%
html_nodes(".social-member-event-MemberEventOnObjectBlock__item--2PXOx .ui_link") %>%
html_text()
data<-data.frame(likes, review dates)`
Thank you in advance
UPD: Big Thanks for everybody for spending some time for my question! Yeah. It sounds legit also. However I found this kind of solution by @BjaRule and it worked. Scraping with rvest - complete with NAs when tag is not present