updated gitignore and requirements.txt, added send sms script · algorepos/python-scripts@125a657 · GitHub
Skip to content

Commit 125a657

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

4 files changed

Lines changed: 17 additions & 2 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion

27_send_sms.py

Lines changed: 12 additions & 0 deletions
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)