Monks,
 The following code is something I put together today mainly for use on my website. It scrapes the bugtraq section off security-focus.com. Keeps you from having to subscribe to the mailing list. Let me know what you think.
Later,
#!/usr/bin/perl -w ## # # parses bugtraq off security-focus.com. # mainly for dynamic website use. # # dusty hall # ## use strict; use URI::URL; use LWP::Simple; use HTML::Parse; use HTML::TableExtract; open(OUT,">security-focus.html"); my $bugtraq = "http://www.security-focus.com/archive/1"; my $html = get $bugtraq; my ($extract,$state,$row); $extract = new HTML::TableExtract( headers => [qw(Date Subject Author) +], keep_html => 1 ); $extract->parse($html); foreach $state ($extract->table_states) { foreach $row ($state->rows) { my $parsed_html = HTML::Parse::parse_html($row->[1]); my @wanted = ('a'); for (@{$parsed_html->extract_links(@wanted) }) { my $link =$_->[0]; my $description = $_->[1]; $description = $description->content->[0]; if (! defined $description) { $description='' } my $url = new URI::URL $link; my $full_url = $url->abs($bugtraq); $description =~ tr/A-Z/a-z/; print OUT "<font size=2 face=verdana>$row->[0] <a target=_blank hre +f=$full_url>$description</a></font><br>"; } } } close(OUT);
--JD

In reply to Alternative to Bugtraq Mailing List. by draper7

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.