Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit125a657

Browse files
committed
updated gitignore and requirements.txt, added send sms script
1 parent0bb4c8c commit125a657

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

‎.gitignore

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
importrequests
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+
ifr.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
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)

[8]ページ先頭

©2009-2025 Movatter.jp