Text an address to a number to get property & ownership info
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
geocode
salesforce
tests
.gitignore
README.md
main.py
requirements.txt
sample.env

README.md

sms-address

text a phone number with an address, get some info about that address

dependencies

Requires Python 3.5.

pip install -r requirements.txt

you might need to install python-levenshtein separately. assuming the anaconda install of python 3, run: conda install -c conda-forge python-levenshtein

windows?

install visual c+, needed for python-Levenshtein

start it up

  1. install autoenv if you haven't already and put your secrets in .env
  2. python ./main/main.py starts the server listening at localhost:1337 (or 5000?)
  3. run ngrok http 1337 (or the port number): this will forward the server to <some-subdomain>.ngrok.io
  4. log into twilio > console > numbers > messaging
  5. update "Messaging > a message comes in". to "webhook" to <some-subdomain>.ngrok.io
  6. now you can text your number to trigger the express app

.env

should have these set:

export SF_USER=
export SF_PASS=
export SF_TOKEN=
export SLACK_ZZZ_HOOK

Ask in Slack for these credentials.

running tests

  1. cd tests
  2. python test_main.py

(if you get an error along the lines of "cannot find module main", try running python3.6 then import context from the tests directory first)