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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -