Skip to content

Instantly share code, notes, and snippets.

@jhertz
Last active August 29, 2015 14:21
Show Gist options
  • Save jhertz/75fd7350f341133ba60d to your computer and use it in GitHub Desktop.
Save jhertz/75fd7350f341133ba60d to your computer and use it in GitHub Desktop.
SBR scraper
#!/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