Created
January 8, 2017 17:01
-
-
Save marg51/58eb83ee3a3138b165ad33ca55d946c2 to your computer and use it in GitHub Desktop.
This file contains 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
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` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
install pup: https://github.com/ericchiang/pup