Tested and run using Python 2.7.11
This script was created to allow integration of Wunderlist with the Echo. This script is designed to be run on a server and simply monitors your native Echo shopping and to-do lists provided by the Echo service. You can add items to your lists like normal then this script will put them in your specified Wunderlists and remove them from the Echo lists. This script uses PyEcho, which screen scrapes the Echo/Alexa page to login and use the undocumented APIs to access the shopping and to-do lists. It also uses wunderpy2 to access the standard Wunderlist API to move the items from your Echo lists to your Wunderlists.
This also uses PyEcho as a submodule (use --recursive
when cloning to pull that in)
Usage: python Echo2Wunderlist.py <echo_email> <echo_password> <wunderlist_client_id> <wunderlist_access_token> <wunderlist_shopping_list_name> <wunderlist_todo_list_name> [<scheduler_frequency_s>] [<gmail_address> <gmail_app_password>]
echo_email
= Email address tied to your Echo accountecho_password
= Password for your Echo accountwunderlist_client_id
= Client ID obtained from Wunderlist (see below)wunderlist_access_token
= Access token obtained from Wunderlist (see below)wunderlist_shopping_list_name
= The exact name of your shopping list in Wunderlistwunderlist_todo_list_name
= The exact name of your to-do list in Wunderlistscheduler_frequency_s
= Rate that the script polls the Echo API in seconds (optional, default is 10s)gmail_address
= Gmail address, this is used for emailing exception messages (optional)gmail_app_password
= App specific password for Gmail address (optional)To use the Wunderlist APIs you'll need to register an application to get the credentials supplied as arguments above. Here are the steps to do that:
Register Your App
Save
Client ID
is the wunderlist_client_id
used in the arguments aboveCreate Access Token
to obtain the wunderlist_access_token
used in the arguments above