TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

run web-search and output to a file (perl?)



I have a list of e-mail address and I'd like to get first and last names
for them in a tab-delinated text file using a search tool that is on the
web. Any ideas how to go about this? I'd like to have a scripts (perl?)
that for each e-mail address would run that through the web search-tool
and put the output into a file where I could grep and sed the stuff. Below
is teh code for the web page that has the search tool. I don't know where
to start looking to do this. Does perl do web queries?

Thanks,

Ben




<script language="javascript">

<!--
function focuslogin () {
  document.forms[0].searchstring.focus();
}
// -->

</script>
</HEAD>
<BODY BGCOLOR=#FFFFFF onLoad="focuslogin();">
  
<FORM METHOD="POST" ACTION="index.php3">
    <TABLE WIDTH=100% HEIGHT=40 BGCOLOR=#000055 BORDER=0 CELLPADDING=0
      CELLSPACING=0 HSPACE=0 VSPACE=0>
      <TR>
        <TD>
          <IMG SRC="http://www.carleton.edu/graphics/carleton-level2.gif"
            WIDTH=199 HEIGHT=18 ALT="Carleton College:" ALIGN=ABSMIDDLE>
          <IMG SRC="http://www.carleton.edu/graphics/campus/directory.gif"
            HEIGHT=15 WIDTH=111 ALIGN=RIGHT>
        </TD>
      </TR>
    </TABLE>
    <BR CLEAR=RIGHT>
    <BLOCKQUOTE>
        <H1>Carleton Phone Book Search:</H1>
              <p>This is an index of Carleton phone numbers. Please type a
query in 
            the search dialog. </p>
        <P>Display entries containing <em>all</em> of these words: 
            <INPUT TYPE=text NAME="searchstring">
            <INPUT TYPE=submit VALUE="Search">
        </P>
        <hr>
            <P>Information in this directory is subject to change.  Please
consult
      the Carleton Operator (0) if you have questions.</p>
        <p>Please forward office location and phone number changes to
Chris Jensen 
            (email <CODE><a

href="mailto:cjensen@acs.carleton.edu">cjensen@acs.carleton.edu</a></CODE>) 
            in the Telecommunications office, Laird 6. 
          <p>Please forward additions and corrections for the faculty and
staff listings 
            to Joanne Sharp (email <CODE><a

href="mailto:sharp@acs.carleton.edu">sharp@acs.carleton.edu</A></CODE>) 
            in the personnel Office, Leighton 109. 
        <p>Please forward student changes to the Office of the Dean of
      Students in Severance 22.
        <P><A HREF=http://www.carleton.edu/campus/directory/>Back to main
Directory 
            page</A>
        <hr>
        <font size="1"><i>Directory information last updated 
        November 4, 1999 2:47pm        .</i></font></BLOCKQUOTE>
  </FORM>
</BODY>
</HTML>