<?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 Is there any way to capture data from Internet with JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4816#M4816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When that hapens to me, I rely on Xan's fantastic "Column Name Add-In Utility"&lt;/P&gt;&lt;P&gt; &lt;A href="http://support.sas.com/demosdownloads/downarea_t4.jsp?productID=110491&amp;amp;jmpflag=N"&gt;http://support.sas.com/demosdownloads/downarea_t4.jsp?productID=110491&amp;amp;jmpflag=N&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use "Move Up" to move the first row to be the column names. I'm sure you could reuse the script from the add-in if you want to automate this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2012 19:31:58 GMT</pubDate>
    <dc:creator>jschroedl</dc:creator>
    <dc:date>2012-03-23T19:31:58Z</dc:date>
    <item>
      <title>Is there any way to capture data from Internet with JSL, including hyperlinks</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4814#M4814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PMroz has the right idea though some pages may require logging in or use background requests (AJAX) to pull in data after you navigate to the page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; For those, it's better to use &lt;STRONG&gt;File &amp;gt; Internet Open &lt;/STRONG&gt;and change Open As: to &lt;STRONG&gt;Web page. &lt;/STRONG&gt;After that, you can login/click hyperlinks, etc and use &lt;STRONG&gt;File &amp;gt; Import Table As Data Table... &lt;/STRONG&gt;when you reach the data. From there, you can click through more links like Next | Prev etc on the page and keep importing as needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, this is impractical for lots of pages so JSL is the way to go there as PMroz says (assuming you're not stymied with a login page).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 17:43:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4814#M4814</guid>
      <dc:creator>jschroedl</dc:creator>
      <dc:date>2012-03-23T17:43:22Z</dc:date>
    </item>
    <item>
      <title>Is there any way to capture data from Internet with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4815#M4815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right that not all web pages are this easy.&amp;nbsp; I had never tried opening a URL as a web page and then using File &amp;gt; Import Table as Data Table.&amp;nbsp; Great option!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I notice that when I import Teresa's table the column headers are in row 1 of the table.&amp;nbsp; I used &lt;STRONG&gt;Edit &amp;gt; Copy&lt;/STRONG&gt; to copy the data, opened up a blank dataset, and then used &lt;STRONG&gt;Edit &amp;gt; Paste with Column Names&lt;/STRONG&gt;.&amp;nbsp; That worked fine, but is there an easier way to move row 1 into the column header position?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 19:27:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4815#M4815</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2012-03-23T19:27:10Z</dc:date>
    </item>
    <item>
      <title>Is there any way to capture data from Internet with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4816#M4816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When that hapens to me, I rely on Xan's fantastic "Column Name Add-In Utility"&lt;/P&gt;&lt;P&gt; &lt;A href="http://support.sas.com/demosdownloads/downarea_t4.jsp?productID=110491&amp;amp;jmpflag=N"&gt;http://support.sas.com/demosdownloads/downarea_t4.jsp?productID=110491&amp;amp;jmpflag=N&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use "Move Up" to move the first row to be the column names. I'm sure you could reuse the script from the add-in if you want to automate this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 19:31:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4816#M4816</guid>
      <dc:creator>jschroedl</dc:creator>
      <dc:date>2012-03-23T19:31:58Z</dc:date>
    </item>
    <item>
      <title>Is there any way to capture data from Internet with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4817#M4817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.jmp.com/people/jschroedl" id="jive-40557433492894402837803"&gt;jschroedl&lt;/A&gt;&amp;nbsp; your answers are very interesting too. In fact I combine the solution of PMroz in his first message and your propossal in the last one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would like to automatice with JSL the Xan's Add-in. I get several tables opened with the open internet command, each one need to pass the add-in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I program it, somethink like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Open ("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://....);"&gt;http://....);&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Add in&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Open ("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://...);"&gt;http://...);&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Add in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Teresa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 07:28:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4817#M4817</guid>
      <dc:creator>teresa</dc:creator>
      <dc:date>2012-03-29T07:28:29Z</dc:date>
    </item>
    <item>
      <title>Is there any way to capture data from Internet with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4818#M4818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a couple of ways you can script it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Invoke the add-in directly (assuming you installed the add-in)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open( "&lt;A href="http://www.velarc.es/informes/lista_registro_barcos.php"&gt;http://www.velarc.es/informes/lista_registro_barcos.php&lt;/A&gt;", HTML Table( 3 ) );&lt;/P&gt;&lt;P&gt;Include("$ADDIN_HOME(com.jmp.columnnames)\hoist.jsl");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Open the code from the add-in and incorporate it directly in your script perhaps as a function. Here I made the contents of hoist.jsl into a "Hoist Column Names" function and call it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoist Column Names = Function({dt},&lt;BR /&gt; Local( {ci, col},&lt;BR /&gt;&amp;nbsp; col = dt &amp;lt;&amp;lt; Get Selected Columns();&lt;BR /&gt;&amp;nbsp; If( !Is List( col ) | N Items( col ) == 0,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; col = {};&lt;BR /&gt;&amp;nbsp;&amp;nbsp; For( ci = 1, ci &amp;lt;= N Col(), ci++,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; col[ci] = Column( ci )&lt;BR /&gt;&amp;nbsp;&amp;nbsp; );&lt;BR /&gt;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&amp;nbsp; For( ci = 1, ci &amp;lt;= N Items( col ), ci++,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; col[ci] &amp;lt;&amp;lt; Set Name( Char( col[ci][1] ) )&lt;BR /&gt;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&amp;nbsp; dt &amp;lt;&amp;lt; Delete Rows( 1 );&lt;BR /&gt; )&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt = Open( "&lt;A href="http://www.velarc.es/informes/lista_registro_barcos.php"&gt;http://www.velarc.es/informes/lista_registro_barcos.php&lt;/A&gt;", HTML Table( 3 ) );&lt;BR /&gt;Hoist Column Names(dt);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 13:25:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4818#M4818</guid>
      <dc:creator>jschroedl</dc:creator>
      <dc:date>2012-03-29T13:25:54Z</dc:date>
    </item>
    <item>
      <title>Is there any way to capture data from Internet with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4819#M4819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone curious about how I knew what script the add-in was running, here's how you can find out for yourself:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;To see what a particular menu item is doing:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Go to &lt;EM&gt;View &amp;gt; Customize &amp;gt; Menus and Toolbars &lt;/EM&gt;menu. &lt;/P&gt;&lt;P&gt;- Cllick the &lt;EM&gt;Change...&lt;/EM&gt; button at the top and select the &lt;EM&gt;JMP Add-In&lt;/EM&gt; radio button then select &lt;EM&gt;com.jmp.columnnames&lt;/EM&gt; in the drop down. &lt;/P&gt;&lt;P&gt;- Click &lt;EM&gt;OK&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The menu editor will show the items this Add-In has defined. In this case, it's under the &lt;EM&gt;Add-Ins &amp;gt; Column Names&lt;/EM&gt; menu. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Expand &lt;EM&gt;Add-Ins &amp;gt; Column Names &lt;/EM&gt;in the tree on the left side &lt;/P&gt;&lt;P&gt;- Select the &lt;EM&gt;Move Up &lt;/EM&gt;menu item.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the right-side, you see that the Action is to run JSL from a file "$ADDIN_HOME(com.jmp.columnnames)\hoist.jsl". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;To see the JSL source code:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Go to &lt;EM&gt;View &amp;gt; Add-Ins...&lt;/EM&gt;&lt;STRONG&gt; &lt;/STRONG&gt;and select the add-in; "Column Names Utilities" in this case. &lt;/P&gt;&lt;P&gt;- Click the link next to &lt;EM&gt;Home Folder&lt;/EM&gt; and the folder containing the add-in will be opened. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case it's: C:\Users\john\AppData\Local\SAS\JMP\Addins\com.jmp.columnnames&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From there you can see the jsl (and other goodies) from the add-in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 13:43:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4819#M4819</guid>
      <dc:creator>jschroedl</dc:creator>
      <dc:date>2012-03-29T13:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to capture data from Internet with JSL, including hyperlinks</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4820#M4820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some time ago you suggest me to open a Web Page using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"For those, it's better to use &lt;STRONG&gt;File &amp;gt; Internet Open &lt;/STRONG&gt;and change Open As: to &lt;STRONG&gt;Web page. &lt;/STRONG&gt;After that, you can login/click hyperlinks, etc and use &lt;STRONG&gt;File &amp;gt; Import Table As Data Table... &lt;/STRONG&gt;when you reach the data. From there, you can click through more links like Next | Prev etc on the page and keep importing as needed."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nowadays I try to import a table from the follow Web page with an Opend comand: &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Open( "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.marinetraffic.com/ais/datasheet.aspx?datasource=V_ARR_DEP&amp;amp;PORT_ID=236"&gt;http://www.marinetraffic.com/ais/datasheet.aspx?datasource=V_ARR_DEP&amp;amp;PORT_ID=236&lt;/A&gt;&lt;SPAN&gt;", HTML table(1) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the column &lt;/P&gt;&lt;TABLE border="0" cellpadding="3" cellspacing="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="left" class="sortable"&gt;&lt;/TD&gt;&lt;TD align="left" class="sortable"&gt;&lt;A class="sort" href="http://www.marinetraffic.com/ais/datasheet.aspx?datasource=V_ARR_DEP&amp;amp;PORT_ID=236&amp;amp;orderby=SHIPNAME&amp;amp;sort_order=ASC&amp;amp;var_page=1"&gt;Vessel's Name&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;there is the Name of the Vessel but also a HREF that I would like to capture. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to follow your instructions: &lt;STRONG&gt;File &amp;gt; Internet Open, Open as Web Page&lt;/STRONG&gt; and then &lt;STRONG&gt;File &amp;gt; Import Table As Data Table &lt;/STRONG&gt;but I have the same result: a column with the name and without the HREF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I capture the HREF and the Prev | Next links as you suggest in your message?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Teresa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 19:51:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4820#M4820</guid>
      <dc:creator>teresa</dc:creator>
      <dc:date>2012-04-27T19:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to capture data from Internet with JSL, including hyperlinks</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4821#M4821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The JMP HTML import feature is only concerned with the displayed text and not other attributes of the HTML such as the link destination. So, to go deeper than just importing the text you would need to connect to the server and retrieve the underlying HTML and parse that (using the Socket functionality of JMP for example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 20:18:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4821#M4821</guid>
      <dc:creator>jschroedl</dc:creator>
      <dc:date>2012-04-27T20:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to capture data from Internet with JSL, including hyperlinks</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4822#M4822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh! W&lt;SPAN class="clickable"&gt;&lt;SPAN class="qex"&gt;hat a pity! I has understood it is possible.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="clickable"&gt;&lt;SPAN class="qex"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="clickable"&gt;&lt;SPAN class="qex"&gt;By the way, thank you for your very, very, very soon answer.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="clickable"&gt;&lt;SPAN class="qex"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="clickable"&gt;&lt;SPAN class="qex"&gt;Yours sincerely,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="clickable"&gt;&lt;SPAN class="qex"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="clickable"&gt;&lt;SPAN class="qex"&gt;Teresa&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 20:51:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-any-way-to-capture-data-from-Internet-with-JSL/m-p/4822#M4822</guid>
      <dc:creator>teresa</dc:creator>
      <dc:date>2012-04-27T20:51:02Z</dc:date>
    </item>
  </channel>
</rss>

