Hello!
For a project I'm trying to use R to scrape the API. Unfortunately, I always get an error message when I try to run the code.
> armadillo <- fromJSON("https://catalog.archives.gov/api/v1/?q=armadillo")
Error in parse_con(txt, bigint_as_char) :
lexical error: invalid char in json text.
<!doctype html><html lang="en">
(right here) ------^
I'm not sure what I'm doing wrong, because the first time running the code, everything worked just fine. The libraries "jsonlite" and "rvest" are loaded.
Can you help me?
Thanks in advance!
Hello!
For a project I'm trying to use R to scrape the API. Unfortunately, I always get an error message when I try to run the code.
I'm not sure what I'm doing wrong, because the first time running the code, everything worked just fine. The libraries "jsonlite" and "rvest" are loaded.
Can you help me?
Thanks in advance!