Need script that reads "indexof" generated html sites

Is it possible to scan a generated “index of” html site that displays all the files and folders?

For example if I enter a local web server address in a web browser i get the following generated html site

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
      <title>Index of /component_test/TEST/ndpgsn_5_0</title>
    <h1>Index of /component_test/TEST/ndpgsn_5_0</h1>
    <ul><li><a href="/component_test/TEST/"> Parent Directory</a></li>
    <li><a href="CXS101289_LLVGREY_ATM452_2_06_P16A01_101209134111/"> CXS101289_LLVGREY_ATM452_2_06_P16A01_101209134111/</a></li>
    <li><a href="CXS101289_LLVGREY_ATM452_2_06_P16A01_101213085154/"> CXS101289_LLVGREY_ATM452_2_06_P16A01_101213085154/</a></li>
    <li><a href="CXS101289_LLVGREY_ATM452_2_06_P16A01_110111180811/"> CXS101289_LLVGREY_ATM452_2_06_P16A01_110111180811/</a></li>

can I access this generated html site, so that if I push a link, that a script is automatically runned, is this possible and how would I do it?

If this is not possible, can i make a script that scans the current file level what files that are there and then write them out so that the result will be the above code?

Thanks in advance