title: Webscraping in R From Dataframe
body: <p>From the following data frame </p>
  
  <p><a href="https://i.stack.imgur.com/T2WHd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T2WHd.png" alt="enter image description here"></a></p>
  
  <p>I am trying to use the package rvest to scrape each words Part of speech and synonyms from the website: <a href="https://www.thesaurus.com/browse/research?s=t" rel="nofollow noreferrer">https://www.thesaurus.com/browse/research?s=t</a> into a csv. </p>
  
  <p>I am not sure how to have R search each word of the data frame and pull its Part of Speech and Synonym. </p>
  
  <p><code>install.packages("rvest")
      install.packages("xml2")
      library(xml2)
      library(rvest)
      library(dplyr)
   words&lt;data.frame("keywords"=c("research","survey","staff","outpatient","consent")) 
  html&lt;- read_html("https://www.merriam-webster.com/thesaurus/research")
  html %&gt;%  html_nodes(".mw-list") %&gt;% html_text () %&gt;% 
  head(n=1) # take the first 1st records</code></p>