📖 Presentation
receive_sms is a library which allows to receive SMS in python free and unlimited.
⚙️ Installation
You can download the file or use PyPi :
pip install receive-sms
For getting informations, you can use :
pip show receive-sms
⌨️ Use
receive_sms.get_messages(phone_number='12018577757')
Returns the last 100 messages sent to phone_number (newest to oldest). How do I know which phone_number to put?
Messages are returned as a message class, here are its attributes:
message.text
Returns the content of message (str)
message.from_number
Returns the phone number you originally chose (str)
message.to_number
Returns the phone number that sent the message (str)
message.date
Returns the date of the message, imprecise (datetime)
💾 Example
import receive_sms # Import the library
data = receive_sms.get_messages(phone_number = '12018577757') # Get messages sent to 12018577757
# Print informations of each message
for msg in data:
print(msg.text) # The content of the message
print('from '+msg.from_number) # The number from which the message originated
print('to '+msg.to_number) # Your number, in this case it's 12018577757
print('the '+msg.date.strftime("%m/%d/%Y, %H:%M")) # The date
print('\n') # Line break
This file is here.
ℹ️ To know
• Phone numbers are public, everyone can see received messages.
• Messages longer than 150 characters are split.
• The library uses sms-online.co.
The phone numbers you can use
+1 201-857-7757 - 🇺🇸 United States
+1 787-337-5275 - 🇵🇷 Puerto Rico
+60 11-1700 0917 - 🇲🇾 Malaysia
+44 7520 635797 - 🇬🇧 United Kingdom
+46 76 943 62 66 - 🇸🇪 Sweden
Metadata
Release files for receive-sms 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| receive-sms-1.0.4.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| receive_sms-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / receive-sms-1.0.4.tar.gz
| Download URL | receive-sms-1.0.4.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
747df7d1503a7240202a1c2b240f8b5a9c90a620192c0747fdf5b15029a8b6e1
|
|
BLAKE2b-256 checksum How to use checksums |
6c7367709f4dfcd01cb3d5a17a717bc531bf139dfb5cb6caa018cad222efe027
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.7.0 requests/2.27.1 setuptools/62.1.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.4
|
Release files / receive_sms-1.0.4-py3-none-any.whl
| Download URL | receive_sms-1.0.4-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb140d2b5dca79d2c448713563bbd641a971286bf97058dc0187290720c0aaf3
|
|
BLAKE2b-256 checksum How to use checksums |
d0ad494d459be1a7f133388e9aeec70cb9cff85d6952e18ab32b330c2a2dda43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.7.0 requests/2.27.1 setuptools/62.1.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.4
|