Skip to content

Instantly share code, notes, and snippets.

@marg51
Created January 8, 2017 17:01
Show Gist options
  • Save marg51/58eb83ee3a3138b165ad33ca55d946c2 to your computer and use it in GitHub Desktop.
Save marg51/58eb83ee3a3138b165ad33ca55d946c2 to your computer and use it in GitHub Desktop.
wage() {
curl -s -XPOST 'http://www.thesalarycalculator.co.uk/salary.php' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Connection: keep-alive' --data "salary=$1&age=low&taxcode=&bonus=&payperiod=12&otime1=&orate1=1.5&otime2=&orate2=2&pensiontype=employer&pension=&childcare=&sacrifice=&sacrificeperiod=12&taxablebenefits=&benefitperiod=12&pretax=&posttax=&chosenTaxYear=2016&submit=Go%21&timeperiods%5B%5D=1&timeperiods%5B%5D=12&timeperiods%5B%5D=52&timeperiods%5B%5D=260&submit=" | pup '.takehome td:nth-child(3) text{}'
}
# `source .aliases`
@marg51
Copy link
Author

marg51 commented Jan 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment