Website: https://www.goodreads.com/book/show/27841061-nevernight Goal: To extract individual user ratings
When I inspect the user rating, I see this.
<span class="staticStars notranslate" title="did not like it">
If I can extract the title I can map the ratings.
rate_map = {'did not like it': 1,
'it was ok': 2,
'liked it': 3,
'really liked it': 4,
'it was amazing': 5}
url = 'https://www.goodreads.com/book/show/27841061-nevernight'
gr_list <- read_html(url)
gr_list %>% html_node('.staticStars .notranslate') %>%
html_attr('title')
The result I am getting for the code is "NA".
Can anyone tell me what I am doing wrong? Thanks.