Skip to content

Instantly share code, notes, and snippets.

@zakx
zakx / damazon.py
Last active August 30, 2020 00:01 — forked from trehn/damazon.py
#!/usr/bin/python2
# setup: pip install requests beautifulsoup4
from decimal import Decimal
import requests
from bs4 import BeautifulSoup
import sys
# Session setup
var msg = {};
msg.payload = {
value_id: "2-37-1-0",
node_id: 2,
class_id: 37,
type: "bool",
genre: "user",
instance: 1,
index: 0,
label: "Switch",