masesk / verification_sms

Verification SMS sent from Google Voice account to a given phone number. Useful for unique user account creation / 2FA

Home Page:http://masesk.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

verification_sms

Verification SMS sent from Google Voice account to a given phone number. Useful for unique user account creation and/or 2FA.

Requirements

  1. Python3 (with Venv)
  2. ChromeDriver (Chromium)
  3. Gmail Account (w/o 2FA)
  4. Google Voice Account activated. Sign up and activate and account here
  5. selenium
  6. webdriver_manager

Limitations

  1. One SMS process handler. If busy, error will be thrown.
  2. Synchronized calls.

Setup

To install on pip, simply do

pip install -e .

Use

from verification_sms import VerificationSMS

vm = VerificationSMS()

# email - Google Voice activated account email
# password - Google Voice activated account password
# phone - Phone number to receive the verification code
# vcode - Verification code sent to phone number

vm.send_message(email, password, phone, vcode)

Example

Check example/flaskr for a working application that implements the functionality on a blog account from the official Flask tutorial.

Follow example/README.md to properly run the Flask example.

About

Verification SMS sent from Google Voice account to a given phone number. Useful for unique user account creation / 2FA

http://masesk.github.io

License:Apache License 2.0


Languages

Language:Python 67.6%Language:HTML 23.2%Language:CSS 9.1%