About This Project

Elektra is designed to automate the process of inventory checking, purchasing items, and generating account login sessions for various commercial and retail sites.

Amazon is the first of many sites to come. Expect weekly additions, though some sites may only receive login and monitor modules and not full fledged checkout.


This project is not intended for resellers. This is a project for educational purposes / experimentation / to help others get an item which they may need.

Progress / Roadmap

Site Login Monitor Checkout
  • Add notifications module (Discord, Slack, Twilio)
  • Add auth code fetcher (imap + Gmail)
  • Add account generators


Requires Go 1.7

go get github.com/ffeathers/Elektra-Auto-Checkout

Use go mod tidy if issues arise with some of Elektra’s imported modules.

Getting Started

Below is some example usage of the Amazon module. You can find additional examples for other sites in the examples folder.

Checking stock

If UserAgent is left empty, a user-agent will be automatically generated for you. PollingInterval is the delay in seconds for which a monitor will sleep after every stock check. Once a monitor task is started, it will continue to monitor indefinitely until stock is detected.

monitorData := elektra.AmazonMonitorData{
  UserAgent: "", 
  UseProxies: true,
  Proxies: []string{"IP:Port", "IP:Port"},
  PollingInterval: 3,
  Sku: "ASIN",
  OfferId: "OfferId",
log.Println(fmt.Sprintf("SKU %s: In Stock", monitorData.Sku))
Starting a checkout instance

Account Cookies are needed in order to complete a checkout. You can use cookies from your browser or you can create a session using the Amazon login module (not yet implemented).RetryDelay is the amount of time that a checkout task will sleep if there is an error in the checkout flow, before restarting. MaxRetries is the maximum amount of checkout attempts a checkout task will make before it returns. If the return value is false, the task was unable to complete a successful checkout after every attempt made. If it is true, then the checkout was succesful and OrderNum should now be populated with the order number.

If you would like to use your local IP, you can set UseProxies to false. Currently only IP authenticated (IP:Port) proxies are supported but support for user/pass authenticated proxies will be added soon.

checkoutData := elektra.AmazonCheckoutData{
  UserAgent: "",
  UseProxies: true,
  Proxies: []string{"IP:Port", "IP:Port"},
  Cookies: "",
  MaxRetries: 5,
  RetryDelay: 3,
  Sku: "ASIN",
  OfferId: "OfferId",
orderSuccess := checkout.AmazonCheckoutTask(&checkoutData) 
if orderSuccess {
  log.Println("Checkout successful | order number: " + checkoutData.OrderNum)




View Github