I have a process I am trying to automate. Once a week, a third party sends me an e-mail with a randomly generated login and password to download a zip file of documents. I have managed to get the login working using HTTP::Cookies and LWP::UserAgent, but the file that is downloaded contains a bunch of JavaScript rather than links. The page apparently relies heavily on JQuery to generate the list of files. (Redacted image of interface available here: https://imagebin.ca/v/3pRrSI2qr3sH) The code that, I believe, populates the table is this snippet here:
<script type="text/javascript" src="/WebInterface/custom.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#filesContainer').fileTree({ root: '/', overrideFromHash: true, expandSpeed: 1000, collapseSpeed: 1000, multiFolder: true, customData: true }, function(link) { window.open(link); });
I need to be able to somehow parse this page to get a list of the files that they have available for download, then download the file. Directory listing is turned off on the server, so I can't just log in and then do a list. Is there a way I can convert this into a URL I can send to the server to get the file list?

In reply to jQuery Perl Interface by BrentD

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.