Skip to content

Commit 125a657

Browse files
committedSep 13, 2015
updated gitignore and requirements.txt, added send sms script
1 parent 0bb4c8c commit 125a657

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed
 

‎.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
.DS_Store
33
_tmp
44
env
5-
__pycache__
5+
venv
6+
__pycache__

‎27_send_sms.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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!')

‎readme.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@
2525
1. **23_flask_session_test.py**: Just a simple app to see if the sessions are working
2626
1. **24_sql2csv.py**: SQL to CSV.
2727
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/)

‎requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ itsdangerous==0.24
88
lxml==3.4.4
99
numpy==1.9.2
1010
requests==2.7.0
11+
wheel==0.24.0

0 commit comments

Comments
 (0)
Please sign in to comment.