I am quite new into WebScraping - I still have to learn a lot about HTML... However, yesterday I tried to get all actors of each movie from: https://www.imdb.com/search/title/?title_type=feature&year=2020-01-01,2020-12-31&start=1001&ref_=adv_nxt as own element of a vector with all actors from all movies. But I did not find any examples online, so I wonder if someone could help me out?
This command gives me all actors listed on the website, each actor is an own element of the vector.
other_actors_html <- html_elements(text,css='a[href*="adv_li_st"]')
# or this command works fine too:
other_actors_html <- html_elements(text,css='.lister-item-content')
other_actors_html_text <- html_text(other_actors_html)
But what I want is something different - I want to have movie-wise elements. Something like this:
test_vec <- c("Christian De Sica,Massimo Boldi,Lucia Mascino,Milena Vukotic", NA, "Abhiram,Achila,Ajay,Vinod Anantoju")
So I know which actors belong to which movie.
Any ideas? Many thanks, Nadine