Displaying 9 results from an estimated 9 matches for "printrequest".
Did you mean:
printrequests
2018 May 08
0
help with json data from the web into data frame in R
...quot;json"
> .opts = list(ssl.verifypeer = FALSE)
> )
>
The R interpreter tells me there's a missing comma after the line:
"format" = "json"
Fixing that syntactic error I get:
str(zWebObj)
# ---bein console output
atomic [1:1] {"query":{"printrequests":[{"label":"","key":"","redi":"","typeid":"_wpg","mode":2}],"results":{"File:2166320938 | __truncated__
- attr(*, "Content-Type")= Named chr [1:2] "application/json" &...
2018 May 08
0
help with json data from the web into data frame in R
...you offered:
library(jsonlite)
myJSON <- fromJSON( url("https://www.semantic-mediawiki.org/w/api.php?action=ask&query=%5B%5BCategory:City%5D%5D&format=json") )
# results in a complex list (not trivially reducible to a dataframe:
str(myJSON)
List of 1
$ query:List of 5
..$ printrequests:'data.frame': 1 obs. of 5 variables:
.. ..$ label : chr ""
.. ..$ key : chr ""
.. ..$ redi : chr ""
.. ..$ typeid: chr "_wpg"
.. ..$ mode : int 2
..$ results :List of 39
.. ..$ File:2166320938 5cfc9ec72a z.jpg...
2018 May 08
3
help with json data from the web into data frame in R
...yJSON <- fromJSON( url("https://www.semantic-mediawiki.org/w/api.php?action=ask&query=%5B%5BCategory:City%5D%5D&format=json") )
>
> # results in a complex list (not trivially reducible to a dataframe:
>
> str(myJSON)
> List of 1
> $ query:List of 5
> ..$ printrequests:'data.frame': 1 obs. of 5 variables:
> .. ..$ label : chr ""
> .. ..$ key : chr ""
> .. ..$ redi : chr ""
> .. ..$ typeid: chr "_wpg"
> .. ..$ mode : int 2
> ..$ results :List of 39
> .. ..$ File:2166320938 5cfc9...
2018 May 08
3
help with json data from the web into data frame in R
...you offered:
library(jsonlite)
myJSON <- fromJSON( url("https://www.semantic-mediawiki.org/w/api.php?action=ask&query=%5B%5BCategory:City%5D%5D&format=json") )
# results in a complex list (not trivially reducible to a dataframe:
str(myJSON)
List of 1
$ query:List of 5
..$ printrequests:'data.frame': 1 obs. of 5 variables:
.. ..$ label : chr ""
.. ..$ key : chr ""
.. ..$ redi : chr ""
.. ..$ typeid: chr "_wpg"
.. ..$ mode : int 2
..$ results :List of 39
.. ..$ File:2166320938 5cfc9ec72a z.jpg...
2018 May 08
2
help with json data from the web into data frame in R
I?ve been tinkering and discovered that the link I need to read json data from is ?https? and there is a certificate warning that I have to click through from a browser. That might be my issue. Is there any way in the json package to tell it to ignore self-signed cert errors in a url?
-Rich
From: Eric Berger [mailto:ericjberger at gmail.com]
Sent: Tuesday, May 08, 2018 11:31 AM
To: Evans,
2018 May 08
0
help with json data from the web into data frame in R
...you offered:
library(jsonlite)
myJSON <- fromJSON( url("https://www.semantic-mediawiki.org/w/api.php?action=ask&query=%5B%5BCategory:City%5D%5D&format=json") )
# results in a complex list (not trivially reducible to a dataframe:
str(myJSON)
List of 1
$ query:List of 5
..$ printrequests:'data.frame': 1 obs. of 5 variables:
.. ..$ label : chr ""
.. ..$ key : chr ""
.. ..$ redi : chr ""
.. ..$ typeid: chr "_wpg"
.. ..$ mode : int 2
..$ results :List of 39
.. ..$ File:2166320938 5cfc9ec72a z.jpg...
2018 May 08
3
help with json data from the web into data frame in R
...yJSON <- fromJSON( url("https://www.semantic-mediawiki.org/w/api.php?action=ask&query=%5B%5BCategory:City%5D%5D&format=json") )
>
> # results in a complex list (not trivially reducible to a dataframe:
>
> str(myJSON)
> List of 1
> $ query:List of 5
> ..$ printrequests:'data.frame': 1 obs. of 5 variables:
> .. ..$ label : chr ""
> .. ..$ key : chr ""
> .. ..$ redi : chr ""
> .. ..$ typeid: chr "_wpg"
> .. ..$ mode : int 2
> ..$ results :List of 39
> .. ..$ File:2166320938 5cfc9...
2018 May 09
1
help with json data from the web into data frame in R
...myJSON <- fromJSON( url("https://www.semantic-mediawiki.org/w/api.php?action=ask&query=%5B%5BCategory:City%5D%5D&format=json") )
# results in a complex list (not trivially reducible to a dataframe:
str(myJSON)
List of 1
$ query:List of 5
..$ printrequests:'data.frame': 1 obs. of 5 variables:
.. ..$ label : chr ""
.. ..$ key : chr ""
.. ..$ redi : chr ""
.. ..$ typeid: chr "_wpg"
.. ..$ mode : int 2
..$ results :List of 39
.. ..$ File:2166320938 5cfc9...
2018 May 08
0
help with json data from the web into data frame in R
...yJSON <- fromJSON( url("https://www.semantic-mediawiki.org/w/api.php?action=ask&query=%5B%5BCategory:City%5D%5D&format=json") )
>
> # results in a complex list (not trivially reducible to a dataframe:
>
> str(myJSON)
> List of 1
> $ query:List of 5
> ..$ printrequests:'data.frame': 1 obs. of 5 variables:
> .. ..$ label : chr ""
> .. ..$ key : chr ""
> .. ..$ redi : chr ""
> .. ..$ typeid: chr "_wpg"
> .. ..$ mode : int 2
> ..$ results :List of 39
> .. ..$ File:2166320938 5cfc9...