Need to access Google Custom search api through R -
how use r google custom search? have custom search engine id , api key. try this:
geturl("https://www.googleapis.com/customsearch/v1?key=api_key&cx=engine_id&q=searchterm")
and following error:
error in function (type, msg, aserror = true) : ssl certificate problem: unable local issuer certificate
though able results in json when request in browser. clue on whats happening?
httr package worked!!
library(httr) query="https://www.googleapis.com/customsearch/v1?key=api_key&cx=engine_id&q=search_term" content(get(query))
Comments
Post a Comment