Last active
August 29, 2015 14:21
-
-
Save jhertz/75fd7350f341133ba60d to your computer and use it in GitHub Desktop.
SBR scraper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#bash one liner to scrape SBR | |
#needs pup, curl, awk, grep | |
#usage: ./scrape.sh "http://smashboards.com/rankings/the-big-house-4-melee-singles-top-192.2364/event" | |
#prints SB usernames, in order. ignores unclaimed players | |
curl $1 | pup 'td.resultUsr a attr{href}' | grep members | awk -F'/' '{print $2}' | awk -F'.' '{print $1}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment