File tree 4 files changed +17
-2
lines changed
4 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 2
2
.DS_Store
3
3
_tmp
4
4
env
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 25
25
1 . ** 23_flask_session_test.py** : Just a simple app to see if the sessions are working
26
26
1 . ** 24_sql2csv.py** : SQL to CSV.
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
- 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
8
8
lxml == 3.4.4
9
9
numpy == 1.9.2
10
10
requests == 2.7.0
11
+ wheel == 0.24.0
You can’t perform that action at this time.
0 commit comments