<?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 Re: Getting an specific tag from HTML file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Getting-an-specific-tag-from-HTML-file/m-p/2255005#M37843</link>
    <description>&lt;P&gt;Nice work!&lt;/P&gt;</description>
    <pubDate>Sat, 17 Nov 2018 13:58:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-17T13:58:03Z</dc:date>
    <item>
      <title>Getting an specific tag from HTML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-an-specific-tag-from-HTML-file/m-p/2255002#M37840</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm trying to get an href link from an HTML file obtained from a HTTP GET request, but seems that I cannot iterate in the correct xml tags to get the data.&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;the xpath wich I'm trying to dive into is:&lt;/STRONG&gt; "//*[@id="node-24615"]/div/div/div/div/center/div[3]/div/table/tbody/tr[2]/td[2]/div/a"&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;and the link that I have to get is:&lt;/STRONG&gt; "&lt;A href="http://obieebr.banrep.gov.co/analytics/saw.dll?Download&amp;amp;Format=excel2007&amp;amp;Extension=.xlsx&amp;amp;BypassCache=true&amp;amp;path=%2Fshared%2fSeries%20Estad%C3%ADsticas_T%2F1.%20IBR%2F%201.1.IBR_Plazo%20overnight%20nominal%20para%20un%20rango%20de%20fechas%20dado%20IQY&amp;amp;lang=es&amp;amp;NQUser=publico&amp;amp;NQPassword=publico&amp;amp;SyncOperation=1" target="_blank" rel="nofollow noopener noreferrer"&gt;http://obieebr.banrep.gov.co/analytics/saw.dll?Download&amp;amp;Format=excel2007&amp;amp;Extension=.xlsx&amp;amp;BypassCache=true&amp;amp;path=%2Fshared%2fSeries%20Estad%C3%ADsticas_T%2F1.%20IBR%2F%201.1.IBR_Plazo%20overnight%20nominal%20para%20un%20rango%20de%20fechas%20dado%20IQY&amp;amp;lang=es&amp;amp;NQUser=publico&amp;amp;NQPassword=publico&amp;amp;SyncOperation=1&lt;/A&gt;"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;thanks for your help!!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="talend_job.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1TW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138757i0AD5286BD18D5E93/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1TW.png" alt="0683p000009M1TW.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 15:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-an-specific-tag-from-HTML-file/m-p/2255002#M37840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-16T15:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an specific tag from HTML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-an-specific-tag-from-HTML-file/m-p/2255003#M37841</link>
      <description>&lt;P&gt;HTML is not XML so this will only work in rare cases. A better solution to this is use something like jsoup&amp;nbsp;&lt;A href="https://jsoup.org/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jsoup.org/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will require a bit of java, but is entirely possible.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 16:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-an-specific-tag-from-HTML-file/m-p/2255003#M37841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-16T16:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an specific tag from HTML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-an-specific-tag-from-HTML-file/m-p/2255004#M37842</link>
      <description>&lt;P&gt;Thanks for your help, finally I could import jsoup library and write a short java code to extract the link.&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt;Document doc = Jsoup.connect(context.webURI).timeout(20000).get();&lt;BR /&gt;Elements tds = doc.select(context.elementSelector);&lt;BR /&gt;context.webURIExcel = tds.first().attr(context.hrefLabel);&lt;BR /&gt;} catch (IOException e) {&lt;BR /&gt;e.printStackTrace();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lu53"&gt;talend solution.PNG&lt;/A&gt;</description>
      <pubDate>Fri, 16 Nov 2018 23:48:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-an-specific-tag-from-HTML-file/m-p/2255004#M37842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-16T23:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an specific tag from HTML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-an-specific-tag-from-HTML-file/m-p/2255005#M37843</link>
      <description>&lt;P&gt;Nice work!&lt;/P&gt;</description>
      <pubDate>Sat, 17 Nov 2018 13:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-an-specific-tag-from-HTML-file/m-p/2255005#M37843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-17T13:58:03Z</dc:date>
    </item>
  </channel>
</rss>

