skip to Main Content

Json – R Query of a Wikimedia server

I am trying to query the Cameo database. If I use the URL https://cameo.mfa.org/api.php?action=query&pageids=17051&prop=extracts&format=json, then I get, online, a valid output. However, if I use: library(httr) library(jsonlite) base_url <- "https://cameo.mfa.org/api.php" query_param <- list(action = "query", pageids = "17051", format =…

VIEW QUESTION

Postgresql – how to insert multiple commands into a prepared statement

The problem is that putting queries together, I got this "error: cannot insert multiple commands into a prepared statement". What can I do? q1=" set search_path to care; SELECT COALESCE(c.date,a.date,jq.date,jn.date) reportmonth,registration,emailverified,application,submitted,eligible,jqtest,selected,joined from ( SELECT date_trunc('month', createdon)::date as date, count(1) as…

VIEW QUESTION
Back To Top
Search