Flickr4Java
Flickr4Java copied to clipboard
Can´t read Character into JSON File - Fehler: lexical error: invalid char in json text. <!DOCTYPE html> - R Studio
Subject of the issue
Hello Guys, I am trying to get Data out of OpenSea and analyze the slaes data in there. Yet I am already struggling to structure my data into JSON File.
Your environment
- version of Flickr4Java
- version of JDK
Steps to reproduce
Here is the Code
First, let's load a few useful packages
library(tidyverse) library(httr) library(jsonlite) library(scales) library(waffle) library(ggrepel)
Retrieve sold NFTs
resOpenSea <- GET("https://api.opensea.io/api/v1/assets", query = list(limit=300, #number of events to retrieve event_type="successful", #retrieve only the sales only_opensea="true")) #retrieve only sales from the opensea website
dataOpenSea <- fromJSON(rawToChar(resOpenSea$content), flatten=TRUE)[[1]]
Here is the error: Error: lexical error: invalid char in json text. <!--[if lt IE 7 (right here) ------^