A Python implementation of the undocumented / unknown API found at https://rpilocator.com
. When done right, this can allow you to get the drop on Rasberry PI restocks and (hopefully) bypass pesky scalpers.
Python 3.0+ w/ pip
requests>=2.28.1
This implementation of the API provided by https://rpilocator.com
was created by hand without documentation. I did this by reverse engineering the endpoint https://rpilocator.com/data.cfm
and viewing data requests sent at runtime via the browser to fill data on the frontend portion.
from rpi_locator import RPILocator
pi_locator = RPILocator(RPILocator.GenToken())
item_list, raw_data = pi_locator.GetRPIList()
for item in item_list:
if item.avail == "Yes":
print("Item: %s is available at %s %s", item.description, item.sort, item.currency)
- Go to https://rpilocator.com
- Press
CTRL+SHIFT+I
or open inspect - Click the
Network
tab at the top - Follow the image below