Open Toniiiio opened 3 years ago
Two optional divs, need three xpathes
url <- "https://cloudmade.com/careers/" docs <- url %>% xml2::read_html() targetString <- "Mobile QA Engineer" tags <- html_nodes(docs, xpath = paste0("//*[contains(text(), '", targetString,"')]")) xp <- SteveAI:::getXPathByTag(tag = tags, text = targetString) targetString <- "Digital Product Manager" tags <- html_nodes(docs, xpath = paste0("//*[contains(text(), '", targetString,"')]")) xp2 <- SteveAI:::getXPathByTag(tag = tags, text = targetString) targetString <- "IT Recruiter" tags <- html_nodes(docs, xpath = paste0("//*[contains(text(), '", targetString,"')]")) xp3 <- SteveAI:::getXPathByTag(tag = tags, text = targetString) xp3
Two optional divs, need three xpathes