Giter Site home page Giter Site logo

emilien-b / receive-sms Goto Github PK

View Code? Open in Web Editor NEW
13.0 1.0 2.0 19 KB

receive_sms is a library which allows to receive SMS in python free and unlimited.

License: MIT License

Python 100.00%
sms 2fa authentication receive sms-online free unlimited message get library

receive-sms's Introduction

๐Ÿ“– 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

receive-sms's People

Contributors

emilien-b avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

peekors

receive-sms's Issues

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.