Skip to content

Instantly share code, notes, and snippets.

@amferraz
Created April 19, 2014 17:46
Show Gist options
  • Save amferraz/11091802 to your computer and use it in GitHub Desktop.
Save amferraz/11091802 to your computer and use it in GitHub Desktop.
This is a toy script I made to find artists without the letter "A" in his name. The regex might need some improvement
#!/bin/bash
# This scripts prints artists from top 1000 from letras.mus.br
# whose name does not contains the 'a' letter.
# Requires package html-xml-utils
curl http://letras.mus.br/top-artistas/ | \
hxnormalize -l 240 -x | \
hxselect -s '\n' -c "#cnt_top > div.left > div > div > ol > li > a > span" | \
grep -vi '[aáàãä]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment