File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ import requests
2
+
3
+ headers = {
4
+ 'Content-Type' : 'application/x-www-form-urlencoded' ,
5
+ 'Accept' : 'application/json' ,
6
+ }
7
+
8
+ data = {
9
+ 'pay_rate' : '10000' ,
10
+ 'filing_status' : 'single' ,
11
+ 'pay_periods' : 1 ,
12
+ 'state' : 'CO' ,
13
+ 'year' :
14
+ '2014'
15
+ }
16
+
17
+ r = requests .post (
18
+ 'http://taxee.io/api/v1/calculate/2014' ,
19
+ data = data ,
20
+ headers = headers
21
+ )
22
+
23
+ print (r .text )
Original file line number Diff line number Diff line change 27
27
1 . ** 25_ip2geolocation.py** : Given a CSV file with an ip address (see sample - * 25_sample_csv.csv* ), return the geolocation based on the ip.
28
28
1 . ** 26_stock_scraper.py** : Scrape the S&P 500 Companies list from Wikipedia, then output the data.
29
29
1 . ** 27_send_sms.py** : Send SMS message via [ TextBelt] ( http://textbelt.com/ )
30
+ 1 . ** 28_income_tax_calculator.py** : Income tax calcuator via [ Taxee] ( http://taxee.io/ )
You can’t perform that action at this time.
0 commit comments