#!/bin/bash

# wminfo plugin: headlines from Polish service wyborcza.pl

# command: wminfo -p wyborcza.wmi -i 2 -b#c2052c -f#ffffff

lynx --source localhost/wminfo/wyborcza.html | \
	dos-unix | \
	perl -pe 's/\t//g;s/\n/ /g;' | \
	sed 's/<h3> <a /<h3><a /g;s/<h3><a /<h3 a /g;' | \
	sed 's/<h3 a /\n<h3 a /g;s/<\/h3>/<\/h3>\n/g' | \
	grep '<h3 a ' | \
	perl -pe 's/<.*?>//g' | \
	html-iso2 | \
	punctuation
echo

