I want to scrape some data from IMDB
and the URL structure is as following https://www.imdb.com/title/tt0903747/episodes/
. I want to bow
and the scrape some different codes. How can I achieve this using map
and scrape
?
library(rvest)
library(tidyverse)
library(polite)
session <- bow("https://www.imdb.com/title/")
results <- map(c("tt903747", "tt5491994"),~scrape(session, query = list(.x, "episodes")))
3