#!/bin/bash

# wminfo plugin: headlines from dpreview.com

# command: wminfo -p dpreview.wmi -b#6594eb -f#ffffff

lynx --source localhost/wminfo/dpreview.html | \
	sed 's/\n/ /g' | \
	sed 's/class="title"><a href=/class="title" a href=/g' | \
	sed 's/</\n</g' | \
	grep 'class="title"' | \
	tr -d '\r' | \
	sed 's/just posted: //' | \
	sed 's/<.*>//;' | \
	grep -v '^$' | \
	punctuation | \
	head -n 25
echo

