Fetching and Storing Information from Websites

Good day everyone

I am pretty fresher on this forum as well as perl, and new to coding too. but started learning these, on seeing my colleagues do in windows box's, fortunately i am in love with linux and installed LinuxMint in my computer.Now i am trying to do a small coding to fetch data from a website and store it in database.the data available in web is .htm file and there are around 35 .htm files with different heading and the data format as follows.

A Week 1

-----------------------------------------------------------------------------------------------

DAY-1 DAY-2 DAY-3 DAY-4 DAY-5

28/01 29/01 30/01 31/01 01/02

------------------- ------------------- ------------------- ------------------- ---------------

000 000 000 000 000

030 030 030 030 030

018 019 019 019 020

002 002 001 002 002

093 096 093 093 090

053 052 056 053 053

007 007 007 007 007

140 130 110 080 080

At present i am copying these info's manually into an excel file as of now, but wanted to do through script and a cron job it. My friend suggested me to do using some scripts and another one suggested perl is the best bet for the same. Can someone guide me?


In reply to fetching and storing data from web. by nicolethomson

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.