8000 GitHub - hummanss/python-sms-activate-ru: Wrapper for automatic SMS receiving by sms-activate.ru
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hummanss/python-sms-activate-ru

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-sms-activate-ru

Описание на русском ниже

Wrapper for automatic reception of SMS-messages by sms-activate.ru

N|Solid

Installation

You can install or upgrade package with:

$ pip install smsactivateru --upgrade

Or you can install from source with:

$ git clone https://github.com/tezmen/python-sms-activate-ru
$ cd python-sms-activate-ru
$ python setup.py install

...or install from source but without pip:

$ pip install git+https://github.com/tezmen/python-sms-activate-ru

Example

from smsactivateru import Sms, SmsService, GetNumber

wrapper = Sms('API KEY')

activation = GetNumber(
	service=SmsService().Youla,
).request(wrapper)

input('Press enter if your sms was sent')

activation.was_sent().request(wrapper)
code = activation.wait_code(wrapper=wrapper)
print(code)

More examples located in /example/ dir


Библиотека на python для работы с api сервиса автоматического приёма смс – sms-activate.ru

N|Solid

Установка

Установка с помощью стандартного пакетного менеджера pip:

$ pip install smsactivateru --upgrade

Либо установка напрямую из репозитория, с ручной сборкой

$ git clone https://github.com/tezmen/python-sms-activate-ru
$ cd python-sms-activate-ru
$ python setup.py install

...либо установка через pip но из репозитория, минуя сервера pypi

$ pip install git+https://github.com/tezmen/python-sms-activate-ru

Простой пример

from smsactivateru import Sms, SmsService, GetNumber

wrapper = Sms('API KEY')

activation = GetNumber(
	service=SmsService().Youla,
).request(wrapper)

input('Press enter if you sms was sent')

activation.was_sent().request(wrapper)
code = activation.wait_code(wrapper=wrapper)
print(code)

Это пример использует встроенный обработчик. Вы можете вручную устанавливать статусы и управлять процессом, а так же много чего ещё. Больше примеров находится в папке /example/

About

Wrapper for automatic SMS receiving by sms-activate.ru

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0