updated gitignore and requirements.txt, added send sms script
This commit is contained in:
parent
0bb4c8c255
commit
125a657ba8
3
.gitignore
vendored
3
.gitignore
vendored
@ -2,4 +2,5 @@
|
||||
.DS_Store
|
||||
_tmp
|
||||
env
|
||||
__pycache__
|
||||
venv
|
||||
__pycache__
|
||||
|
12
27_send_sms.py
Normal file
12
27_send_sms.py
Normal 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!')
|
@ -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/)
|
||||
|
@ -8,3 +8,4 @@ itsdangerous==0.24
|
||||
lxml==3.4.4
|
||||
numpy==1.9.2
|
||||
requests==2.7.0
|
||||
wheel==0.24.0
|
||||
|
Loading…
Reference in New Issue
Block a user