As moritz says, WWW::Mechanize is great. In your case I'd recommend WWW::Selenium which I learned about here from dragonchild and have only experimented with so far. What I've seen is inspriring. Selenium allows you to record a browser session -- the tedious clicking about -- and replay it as a script with all the hook points and editability you'd expect. It also supports JS because you're actually running the browser with the Perl. You can certainly do what you want with Mech too but it would probably take so long to write the script that it would eat up the equivalent of 5 years of "every six months" of annoyance. Selenium might reduce that considerably.

You probably have an impedance mismatch, though. Scripting the data conversions/scraping is probably a significant effort and the kind of thing that is likely to have bad surprises. Getting direct access to the DB to write plain DBI would be likely to save you a lot of trouble (bad/missing data surprises, reprogramming something for 50 hours to save 5 hours of administrative browsing). Since you are in the company, I'd try to get permission to get at the data directly.


In reply to Re: good CPAN modules for webscraping with GET, POST and cookies by Your Mother
in thread good CPAN modules for webscraping with GET, POST and cookies by bcrowell2

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.