Hello all,
Newbie here, just trying to learn perl. I'm trying to download a PDF file from a automotive site. Actually a Volvo site. It's a https site and I’ve been able to download the page with the link to the PDF I want, but now I can't parse the table with the link. I tried using HTML::TableExtract and other modules, but I need to parse out:
CE1B85BDDDE8F58A852573BD003B1FBC/$file/vcmorarorp346601226200712262007944204.pdf or "CIS Report for 12/26/2007". I don't think I can parse by headers, depth or tag, because sometimes the information is not in the Volvo page. I want to put this perl script in a cron job and download the PDF every morning, but some days the PDF is late, so it might not be there or it will be another order. That's why I don't think I can parse by headers, depth or tag.
Edit:(removed links)
I've also looked into regex, but I think I need to know exact amount of tables and rows, but like said, sometimes that info is not in the same order or might not be there at all.
I'm looking to learn and figure out the actually code myself (that's the best part), so any hints or reading material would be greatly appreciated.
Thanks
Gary
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.