PyEcho
A Python wrapper for the (undocumented) Amazon Echo API
Install / Use
/learn @scotttherobot/PyEchoREADME
PyEcho
This is a Python API wrapper for the Amazon Echo (undocumented) API. It logs
into the Echo web app at http://pitangui.amazon.com.
Use
Instantiate a PyEcho object using your Amazon credentials. It will automatically log in to the web service.
import PyEcho
# Create an echo object
echo = PyEcho.PyEcho("some@email.com", "some_password")
# Listen for events.
# This is naïve, it assumes the above worked.
while True:
# Fetch our tasks
tasks = echo.tasks()
# Process each one
for task in tasks:
# Do something depending on the task here.
print "New task found: " + task['text']
# Now that we're done with it, delete it.
# Again, this is naïve. We should error check the response code.
echo.deleteTask(task)
# Wait 10 seconds and do it again
time.sleep(10)
Or, if you want, you can use the included EchoMonitor script, which is
essentially a monitor prompt for the Echo API. It will ask you for your email
and password, login, and then will show you a prompt where you may type
URLs of API endpoints to make authenticated requests against (GET).
Dependencies
- Python
- BeautifulSoup 4
- Requests
- urllib
- cookielib
Related Skills
node-connect
351.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
