#!/bin/bash

# wminfo plugin: Billboard Top 10

# command: wminfo -p billboard-top10.wmi -b#d70377 -f#ffffff

lynx --source http://www.billboard.com/charts/hot-100 | \
	perl -pe 's/\n/ /g;s/</\n</g' | \
	grep -E "<h2>|tracklabel=\"Artist Name\"" | \
	perl -pe 's/\n/ /' | \
	sed 's/<h2>/\n/g' | \
	grep 'tracklabel' | \
	sed 's/<.*>/\-/' | \
	sed -E 's/\s+/ /g;s/^ //' | \
	perl -pe "s/&#039;/'/g;s/&amp;/&/g" | \
	uniq

