-1

I am trying to get information from this link, it is in JSON format

http://data.fidessa.com/FragPro2/fragBreakdown?fim=EPRE.PA&start=20180801&end=20180810&global=Y&format=json

However, I keep getting an error to get response from the link

Error in file(con, "r") : cannot open the connection

Here is my code:

library(jsonlite)

url <- "http://data.fidessa.com/FragPro2/fragBreakdown?fim=EPRE.PA&start=20180801&end=20180810&global=Y&format=json"
data <- fromJSON(url)

(update) I find out that I need to stay in the browser which I log in to Fidessa to make the link work. Is there any way that I can send my log in information to Fidessa and get data from the link ?

nick
  • 1,090
  • 1
  • 11
  • 24
BlueFx
  • 67
  • 5
  • Is fidessa behind a paywall? I received an access denied when visiting the url provided, also i can't seem to navigate to fidessa.com in general. – msubbaiah Aug 15 '18 at 15:24
  • Yep, it is fidessa. However, you do not need to pay anything, just register a free account and you have an access. – BlueFx Aug 15 '18 at 15:36

1 Answers1

0

could data you are looking for does not exist anymore. I took other url and your code is working

url <- "http://api.geonames.org/citiesJSON?north=44.1&south=-9.9&east=-22.4&west=55.2&lang=de&username=demo"
  fromurl <- fromJSON(url)
Nar
  • 648
  • 4
  • 8
  • The data still exists. I see that I need to stay on the browser which I log in to Fidessa to make the link work. – BlueFx Aug 15 '18 at 16:08
  • it is password protected site. you can use some of the approaches from https://stackoverflow.com/questions/5420506/reading-information-from-a-password-protected-site. However it is still to be checked whether site connection could be with authentification – Nar Aug 15 '18 at 19:05