File tree Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 22.DS_Store
33_tmp
44env
5- __pycache__
5+ venv
6+ __pycache__
Original file line number Diff line number Diff line change 1+ import requests
2+
3+ message = raw_input ('Enter a Message: ' )
4+ number = raw_input ('Enter the phone number: ' )
5+
6+
7+ payload = {'number' : number , 'message' : message }
8+ r = requests .post ("http://textbelt.com/text" , data = payload )
9+ if r .json ()['success' ]:
10+ print ('Success!' )
11+ else :
12+ print ('Error!' )
Original file line number Diff line number Diff line change 25251 . ** 23_flask_session_test.py** : Just a simple app to see if the sessions are working
26261 . ** 24_sql2csv.py** : SQL to CSV.
27271 . ** 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- 1 . ** 26_stock_scraper.py** : Scrape the S&P 500 Companies list from Wikipedia, then output he data.
28+ 1 . ** 26_stock_scraper.py** : Scrape the S&P 500 Companies list from Wikipedia, then output the data.
29+ 1 . ** 27_send_sms.py** : Send SMS message via [ TextBelt] ( http://textbelt.com/ )
Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ itsdangerous==0.24
88lxml == 3.4.4
99numpy == 1.9.2
1010requests == 2.7.0
11+ wheel == 0.24.0
You can’t perform that action at this time.
0 commit comments