GithubHelp home page GithubHelp logo

hamutan-86 / temporary-number Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 58 KB

Simple TempSMS Scraper for Python

License: MIT License

Python 100.00%
freesms freesmsapi phone-number sms sms-api sms-verification temp-sms temporary-number tempsms verification

temporary-number's Introduction

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
...

temporary-number's People

Contributors

hamutan-86 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.