<?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: Parsing HTML to return JSON file from list in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Parsing-HTML-to-return-JSON-file-from-list/m-p/824981#M325834</link>
    <description>It does sometimes take a minute to load but should eventually.</description>
    <pubDate>Fri, 22 Jul 2022 17:28:06 GMT</pubDate>
    <dc:creator>A_SAS_Man</dc:creator>
    <dc:date>2022-07-22T17:28:06Z</dc:date>
    <item>
      <title>Parsing HTML to return JSON file from list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-HTML-to-return-JSON-file-from-list/m-p/824957#M325823</link>
      <description>&lt;P&gt;I am attempting to access publicly available data files stored in JSON files which are stored in a list on a webpage (&lt;A href="https://transparency-in-coverage.uhc.com/undefined" target="_blank" rel="noopener"&gt;https://transparency-in-coverage.uhc.com/undefined&lt;/A&gt;). I am first getting the html for the page this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;filename source temp;
proc http
	URL="https://transparency-in-coverage.uhc.com/undefined"
	out=source
	method="Get";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After I do this I am trying to return all the JSON file names so that I can then iterate through them with a macro. But after inspecting the HTML returned from proc http, it appears to be only one line of html. it does not appear to include all of the available code I can see if I'm using google chrome developer tools to inspect the web pages html directly. This makes it impossible to correctly parse the text from the page to find the files. Is there something I'm doing wrong or something different about how this site is set up that doesn't allow the full html to be returned?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 16:00:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-HTML-to-return-JSON-file-from-list/m-p/824957#M325823</guid>
      <dc:creator>A_SAS_Man</dc:creator>
      <dc:date>2022-07-22T16:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing HTML to return JSON file from list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-HTML-to-return-JSON-file-from-list/m-p/824973#M325828</link>
      <description>&lt;P&gt;You're not doing anything wrong, but this data is not part of the source in this page. It looks like the page calls a service on a cloud-hosted database to bring in the list of files. Unless you can find another way to get to the same list, I don't think you'll be able to dynamically load/process from this page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can see the action by looking at the&amp;nbsp;&lt;STRONG&gt;network&lt;/STRONG&gt; tab of the browser developer tools. But no simple way to simulate the same call using PROC HTTP without inside knowledge or a trusted connection.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 17:00:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-HTML-to-return-JSON-file-from-list/m-p/824973#M325828</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-07-22T17:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing HTML to return JSON file from list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-HTML-to-return-JSON-file-from-list/m-p/824974#M325829</link>
      <description>&lt;P&gt;I find this message from the URL when loading in my brower of interest:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;PLEASE NOTE:&lt;/STRONG&gt; Due to the number and size of files being posted it can take up to 5 minutes for the page to load.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 17:09:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-HTML-to-return-JSON-file-from-list/m-p/824974#M325829</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-07-22T17:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing HTML to return JSON file from list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-HTML-to-return-JSON-file-from-list/m-p/824980#M325833</link>
      <description>&lt;P&gt;Thank you for taking a look. I don't have a ton of experience with html so maybe this question is silly. But why am I able to navigate to the list html in developer tools and see the file names but not return it via proc http? Maybe that is what you were getting at with your last response but I didn't quite follow.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 17:28:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-HTML-to-return-JSON-file-from-list/m-p/824980#M325833</guid>
      <dc:creator>A_SAS_Man</dc:creator>
      <dc:date>2022-07-22T17:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing HTML to return JSON file from list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-HTML-to-return-JSON-file-from-list/m-p/824981#M325834</link>
      <description>It does sometimes take a minute to load but should eventually.</description>
      <pubDate>Fri, 22 Jul 2022 17:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-HTML-to-return-JSON-file-from-list/m-p/824981#M325834</guid>
      <dc:creator>A_SAS_Man</dc:creator>
      <dc:date>2022-07-22T17:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing HTML to return JSON file from list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parsing-HTML-to-return-JSON-file-from-list/m-p/824991#M325839</link>
      <description>&lt;P&gt;When loading the page in the browser, the site sends calls this external service and asynchronously populates the list and updates the DOM, or the HTML. As it updates the HTML the browser re-renders for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When using a console or command method like PROC HTTP or cURL, you don't get that async-populate experience. So, no list.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 17:57:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parsing-HTML-to-return-JSON-file-from-list/m-p/824991#M325839</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-07-22T17:57:41Z</dc:date>
    </item>
  </channel>
</rss>

