comp.lang.ada
 help / color / mirror / Atom feed
* Simple parse from https website
@ 2020-04-02 13:58 Rego, P.
  2020-04-02 14:24 ` Egil H H
  2020-04-02 14:42 ` Dmitry A. Kazakov
  0 siblings, 2 replies; 17+ messages in thread
From: Rego, P. @ 2020-04-02 13:58 UTC (permalink / raw)


Hi folks, how are you? I hope everyone is safe and healthy.

I am trying to make a simple parser for an https website push, so trying to follow from the example from http://rosettacode.org/wiki/HTTP#Ada, just changing the address from a website.

So I  tried 

    with Ada.Text_IO; use Ada.Text_IO;
    
    with AWS.Client;
    with AWS.Response;
    
    procedure Main_Other is
    begin
       Put_Line (AWS.Response.Message_Body
                 (AWS.Client.Get
                    (URL => "https://google.com")));
    end Main_Other;

But I got an exception
raised PROGRAM_ERROR : aws-client.adb:398 finalize/adjust raised exception
[2020-04-02 10:41:20] process exited with status 1, elapsed time: 00.80s

So, any thoughts on how to fix that? 

I'd like to parse the current status of some tables in a website, similar of making something like that in Python

    import pandas as pd
    def retrieve_json(json_url):
        return pd.read_json(json_url)


Thanks
Pablo.

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2020-04-03 12:49 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-02 13:58 Simple parse from https website Rego, P.
2020-04-02 14:24 ` Egil H H
2020-04-02 14:44   ` Rego, P.
2020-04-03  9:35     ` Björn Lundin
2020-04-03 12:04       ` Rego, P.
2020-04-02 14:42 ` Dmitry A. Kazakov
2020-04-02 14:48   ` Rego, P.
2020-04-02 17:16     ` Dmitry A. Kazakov
2020-04-02 18:27       ` Rego, P.
2020-04-02 19:05         ` Dmitry A. Kazakov
2020-04-02 19:34           ` Rego, P.
2020-04-03  5:19             ` Jere
2020-04-03 12:13               ` Rego, P.
2020-04-03 12:30                 ` Rego, P.
2020-04-03 12:49                   ` Dmitry A. Kazakov
2020-04-03  6:47             ` Dmitry A. Kazakov
2020-04-03 12:42               ` Rego, P.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox