<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Import data from html page issue in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34936#M20631</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to import the data from the following website:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.infoclimat.fr/observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html" target="_blank"&gt;http://www.infoclimat.fr/observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It&amp;nbsp;is basically a record of meteorological data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the JSL command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it fails. Does someone have the solution?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000dd" face="Consolas" size="2"&gt;Open&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Consolas" size="2"&gt;("&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#800080" face="Consolas" size="2"&gt;&lt;A href="http://www.infoclimat.fr/observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html" target="_blank"&gt;&lt;FONT color="#0066cc"&gt;http://www.infoclimat.fr/observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html&lt;/FONT&gt;&lt;/A&gt;");&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jérôme&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2017 10:18:12 GMT</pubDate>
    <dc:creator>j_bonnouvrier</dc:creator>
    <dc:date>2017-01-25T10:18:12Z</dc:date>
    <item>
      <title>Import data from html page issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34936#M20631</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to import the data from the following website:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.infoclimat.fr/observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html" target="_blank"&gt;http://www.infoclimat.fr/observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It&amp;nbsp;is basically a record of meteorological data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the JSL command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it fails. Does someone have the solution?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000dd" face="Consolas" size="2"&gt;Open&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Consolas" size="2"&gt;("&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#800080" face="Consolas" size="2"&gt;&lt;A href="http://www.infoclimat.fr/observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html" target="_blank"&gt;&lt;FONT color="#0066cc"&gt;http://www.infoclimat.fr/observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html&lt;/FONT&gt;&lt;/A&gt;");&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jérôme&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 10:18:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34936#M20631</guid>
      <dc:creator>j_bonnouvrier</dc:creator>
      <dc:date>2017-01-25T10:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from html page issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34939#M20634</link>
      <description>&lt;P&gt;I attempted to interactively open the webpage using&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File==&amp;gt;Internet Open&lt;/P&gt;
&lt;P&gt;and got the following error message&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This web page uses an unsupported character set: "iso-8859-15".&lt;/P&gt;
&lt;P&gt;I would contact JMP directly about when such support might be available&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 14:04:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34939#M20634</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-01-25T14:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from html page issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34940#M20635</link>
      <description>&lt;P&gt;Have you tried to use File &amp;gt; Internet Open...? &amp;nbsp;In the dialog, you can then select to have the HTML open as data. &amp;nbsp;You should get two data tables. &amp;nbsp; Look at the "Source" table in the table script area for the one you want to see what the JSL looks like to get to it directly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 14:06:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34940#M20635</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2017-01-25T14:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from html page issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34941#M20636</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;, that's odd. &amp;nbsp;I just did it through the GUI and it worked fine.&lt;/P&gt;
&lt;P&gt;JSL for the first table:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open(
	"http://www.infoclimat.fr/observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html",
	HTML Table( 1, Column Names( 0 ), Data Starts( 1 ) )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;JSL for the second table:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open(
	"http://www.infoclimat.fr/observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html",
	HTML Table( 2, Column Names( 1 ), Data Starts( 2 ) )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There do appear to be a lot of pictures in the data table.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 14:09:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34941#M20636</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2017-01-25T14:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from html page issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34942#M20637</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;, that's odd. &amp;nbsp;I just did it through the GUI and it worked fine.&lt;/P&gt;
&lt;P&gt;JSL for the first table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open(
	"http://www.infoclimat.fr/observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html",
	HTML Table( 1, Column Names( 0 ), Data Starts( 1 ) )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JSL for the second table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open(
	"http://www.infoclimat.fr/observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html",
	HTML Table( 2, Column Names( 1 ), Data Starts( 2 ) )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There do appear to be a lot of pictures in the data table.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 14:10:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34942#M20637</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2017-01-25T14:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from html page issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34943#M20638</link>
      <description>&lt;P&gt;Here is the log I get when I run your little piece of JSL to get to the first table&lt;/P&gt;
&lt;PRE&gt;TEConverter - unrecognized charset in access or evaluation of 'Open' , Open/*###*/(
"http://www.infoclimat.fr/observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html",
HTML Table( 1, Column Names( 0 ), Data Starts( 1 ) ))

In the following script, error marked by /*###*/
Open/*###*/(
"http://www.infoclimat.fr/observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html",
HTML Table( 1, Column Names( 0 ), Data Starts( 1 ) ))&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jan 2017 14:22:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34943#M20638</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-01-25T14:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from html page issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34946#M20639</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;- it appears to be a Mac vs Windows issue... Runs fine on my MacOS box, but I get the same error you get on my windows partition. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/551"&gt;@j_bonnouvrier&lt;/a&gt;&amp;nbsp;- you probably want to report this to tech support, like&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;indicated originally.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 14:45:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34946#M20639</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2017-01-25T14:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from html page issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34947#M20640</link>
      <description>&lt;P&gt;Thanks, that's what I will do!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 15:01:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34947#M20640</guid>
      <dc:creator>j_bonnouvrier</dc:creator>
      <dc:date>2017-01-25T15:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from html page issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34968#M20647</link>
      <description>&lt;P&gt;It looks like JMP on Windows does not handle &lt;A href="https://en.wikipedia.org/wiki/ISO/IEC_8859-15" target="_blank"&gt;IEC_8859-15&lt;/A&gt;&amp;nbsp;very well. Here's a work-around (the sockets will not work for https, only for http) if you need it. Mostly taken from the re-written scripting example in JMP 13.1. At the end, the page is imported with&amp;nbsp;iso-8859-1; it appears to be close enough; the wikipedia page shows eight characters that might be problems.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// &amp;lt;&amp;lt;connect is used to connect to a remote computer with an open listening socket.
// some web sites require www, some don't like it.  Some require the HTTP/1.1 format, some are happy with HTTP/1.0 in the GET.
// You'll want to make the error handling more robust...
skt = Socket();
rc = skt &amp;lt;&amp;lt; connect( "www.infoclimat.fr", "80" );
If( rc[2] != "ok",
	Show( rc );
	Stop();
); 

// request a resource from the remote computer.  the trailing slash in the example might or might not be needed.
skt &amp;lt;&amp;lt; Send(
	Char To Blob(
		"GET /observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html HTTP/1.1~0d~0aHost: www.infoclimat.fr~0d~0aConnection: Close~0d~0a~0d~0a",
		"ascii~hex"
	)
);
// gather the response, it might be more than one buffer
blob = Char To Blob( "" ); // start with nothing
blobtext = "";
timeout = 50; // give remote a short time to send a response.  you might need to tune the timeout behavior.
While( timeout-- &amp;gt; 0,
	rc = skt &amp;lt;&amp;lt; recv( 10000 );
	If(
		rc[2] == "ok",
			blob = blob || rc[3]; // recv always returns a blob, not text
			Write( "\!nsome text received" ); // typically about three of these, ymmv
			timeout = 50; // reset, still receiving ok
	, // else
		Starts With( rc[2], "CLOSED" ),
			Break(); // done
	, // else
		Starts With( rc[2], "WOULDBLOCK" ), //
			Write( "\!nwaiting..." ) // still fetching, maybe
	, // else...what?
		Show( rc );
		Stop(); // that was unexpected
	);
	blobtext = Blob To Char( blob, encoding = "utf-8" );
	If( timeout == 0,
		Write( "\!nTimed out waiting for remote request" );
		Stop();
	);
	Wait( .05 ); // give the OS some cycles to work with the incoming data
);

Show( Length( blob ) );

// JMP does not understand what the page claims: iso-8859-15
txt = blobToChar(blob,encoding="iso-8859-1"); length(txt);

f = saveTextFile("$temp/deleteme.html",txt);

open(f,htmltable(2))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Imported table" style="width: 940px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/4924i4FF888AFA7FB25FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="datatable.PNG" alt="Imported table" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Imported table&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 19:42:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34968#M20647</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2017-01-25T19:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from html page issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34970#M20649</link>
      <description>&lt;P&gt;Great response Craige&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A document needs to be created for this one&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 19:48:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/34970#M20649</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-01-25T19:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from html page issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/35072#M20698</link>
      <description />
      <pubDate>Mon, 30 Jan 2017 08:10:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/35072#M20698</guid>
      <dc:creator>j_bonnouvrier</dc:creator>
      <dc:date>2017-01-30T08:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from html page issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/35073#M20699</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help. There is still an error while attepmting to execute the script&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 08:16:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/35073#M20699</guid>
      <dc:creator>j_bonnouvrier</dc:creator>
      <dc:date>2017-01-30T08:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from html page issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/35074#M20700</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help. There is still an error while attepmting to execute the script&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 08:16:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/35074#M20700</guid>
      <dc:creator>j_bonnouvrier</dc:creator>
      <dc:date>2017-01-30T08:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from html page issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/35079#M20703</link>
      <description>&lt;P&gt;Interesting; the JSL works for me on that site. I think the message comes from your company's firewall. Does &lt;A href="http://www.infoclimat.fr/" target="_blank"&gt;http://www.infoclimat.fr/&lt;/A&gt; work from a browser, as http: not https:? I'm using JMP 13, what version are you using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;edit: also try&amp;nbsp;&lt;A href="http://www.infoclimat.fr/observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html" target="_blank"&gt;http://www.infoclimat.fr/observations-meteo/archives/24/janvier/2017/grenoble-st-geoirs/07486.html&lt;/A&gt; in a browser.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 12:54:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/35079#M20703</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2017-01-30T12:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from html page issue</title>
      <link>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/35080#M20704</link>
      <description>&lt;P&gt;It works as http, not https, but the hypothesis of a problem of firewall could be the good one!&lt;/P&gt;&lt;P&gt;I using JMP 12, so it could be a difference. We have planned to move to version 13 very soon, so wait and see...&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 12:55:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-data-from-html-page-issue/m-p/35080#M20704</guid>
      <dc:creator>j_bonnouvrier</dc:creator>
      <dc:date>2017-01-30T12:55:23Z</dc:date>
    </item>
  </channel>
</rss>

