My Perl scripts

Here are links to a few perl scripts I have written. All are released under the GPL.

  1. Getmail

    Getmail is a perl pop3 mail fetcher. It will check multiple accounts, and keeps a record of messages you have already seen. It also allows you to save messages to an mbox file, and can be run such that it checks for any new mail at regular intervals. It depends on the Net::POP3 module, but can also be run (with -w) using lynx and www.mail2web.com.

    Most options can be specifed either via the command line or from a properties file. By default, it looks for a file called getmailrc in ~/.getmail, but this can be altered via the -d command line option.

    You need both the script itself and a sample config file.

  2. web2txt

    Web2txt is a simple script which fetches a website into a single text file. It uses lynx -dump to get the text, and can also be configured to spider multiple levels into the site, and given a regex for the point in the site to start and stop printing.

    The script can be found here.

    For example,
    web2txt -r 1 http://www.theregister.co.uk/tonys/palm.html -g Cancerbusters -s '^s+Related Stor'
    Gives a fetch of all the stories on The Register into a single file.

  3. mp3tag

    mp3tag allows you to search for album track listings on cddb, and retag a directory of mp3 files accordingly.

    It requires MP3::Tag and LWP::UserAgent modules.

    It runs interactively to search and retag the files in the current directory. It simply retags based on a directory listing, so the originals will need to be in the correct order. It will also rename the mp3 files if requested.

    The script can be found here.

  4. youtube.pl

    youtube.pl allows you to download videos from youtube and convert to mp3

    It requires lynx and mplayer

    The script can be found here.

Best viewed with any browser

If you have any comments on my site, email me.