Simple TempSMS Scraper
Project description
Temporary-Number
Scrape Numbers and Messages from https://temporary-phone-number.com
⚙️Installation
pip install temporary-number
📕Usage
get_number(country)
Parameters
Parameter | Type | Description | Required |
---|---|---|---|
Country | ["UK", "US", "France", "Netherlands", "Finland", "Random"] | Default: UK | False |
Example
temporary_number.get_number() # +447893985537
temporary_number.get_number(country="Finland") # +3584573983862
get_messages(number)
Parameters
Parameter | Type | Description | Required |
---|---|---|---|
Number | str | None | True |
Example
temporary_number.get_messages("+447893985537") # Returns list of sms_message
class sms_message(content, frm, time)
Parameters
Parameter | Type | Description |
---|---|---|
Content | str | Content of message |
Frm | str | Sender of message |
Time | str | Timestamp of message |
Example
sms_message.content # G-****** is your Google verification code.
sms_message.frm # Google
sms_message.time # 9 hours ago
📚Examples
Get Random Number
Code:
import temporary_number
number = temporary_number.get_number()
print(number)
number2 = temporary_number.get_number(country="Finland")
print(number2)
Result:
+447893985537
+3584573983862
Get Messages of Number
Code:
import temporary_number
messages = temporary_number.get_messages("+447893985537")
for message in messages:
print(f"{message.time} | From {message.frm}")
print(message.content)
Result:
10 hours ago | From Google
G-188346 is your Google verification code.
13 hours ago | From +447717397317
22
13 hours ago | From +447470629193
02
15 hours ago | From WhatsApp أدح أ ع لطت ال 94-92 : لب ص اخ ل ا ب سرت او دوك 45 هي لعgLq1p5sV6
22 hours ago | From Google
G-975469 is your Google verification code.
22 hours ago | From Google
G-661261 is your Google verification code.
22 hours ago | From Google
G-278280 is your Google verification code.
22 hours ago | From Google
G-326555 is your Google verification code.
22 hours ago | From Google
G-384883 is your Google verification code.
23 hours ago | From Google
G-014594 ialah kod pengesahan Google anda.
1 day ago | From Amazon
002399 is your Amazon OTP. Do not share it with anyone.
1 day ago | From Google
G-102920 is your Google verification code.
1 day ago | From Google
G-525544 Google
1 day ago | From +447868655400
54340
...
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file temporary-number-1.0.1.1.tar.gz
.
File metadata
- Download URL: temporary-number-1.0.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 193c96a74474e83cc12e30ff716837442ddff2b724ef029b668bb6a11cb6eeb0 |
|
MD5 | 8694b352bcf92a8f282bbcae3cd0f4e6 |
|
BLAKE2b-256 | bf4d26c006a81ca3d615960116acb8957667e4fb4061017ab69ef08f60d2e131 |