Thx,
Now I am learning Gumbo.

please see there:

julia> JSON.parse(get("http://rp.pl";).data)
ERROR: Unknown value
Line: 0
Around: ...<!DOCTYPE HTML PUBLIC...
           ^
Ii posible the page to convert to JSON ?
Paul



W dniu 2015-03-02 o 16:46, Stefan Karpinski pisze:
James Porter has an HTML parsing package based on Google's Gumbo library:

https://github.com/porterjamesj/Gumbo.jl

However, what's happening here is that you're getting a 302 moved response and the content is just a renderable version of that. What you actually want to do is look at the response code and headers to figure out what page to actually get and parse as JSON. Or you could use curl with the appropriate options and it will do this for you.

Reply via email to