updated gitignore and requirements.txt, added send sms script

This commit is contained in:
Michael Herman 2015-09-13 13:06:56 -06:00
parent 0bb4c8c255
commit 125a657ba8
4 changed files with 17 additions and 2 deletions

3
.gitignore vendored
View File

@ -2,4 +2,5 @@
.DS_Store
_tmp
env
__pycache__
venv
__pycache__

12
27_send_sms.py Normal file
View File

@ -0,0 +1,12 @@
import requests
message = raw_input('Enter a Message: ')
number = raw_input('Enter the phone number: ')
payload = {'number': number, 'message': message}
r = requests.post("http://textbelt.com/text", data=payload)
if r.json()['success']:
print('Success!')
else:
print('Error!')

View File

@ -25,4 +25,5 @@
1. **23_flask_session_test.py**: Just a simple app to see if the sessions are working
1. **24_sql2csv.py**: SQL to CSV.
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.
1. **26_stock_scraper.py**: Scrape the S&P 500 Companies list from Wikipedia, then output he data.
1. **26_stock_scraper.py**: Scrape the S&P 500 Companies list from Wikipedia, then output the data.
1. **27_send_sms.py**: Send SMS message via [TextBelt](http://textbelt.com/)

View File

@ -8,3 +8,4 @@ itsdangerous==0.24
lxml==3.4.4
numpy==1.9.2
requests==2.7.0
wheel==0.24.0