Skip to content

kxzk/mechmarket-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

r/MechMarket Alert

Why? Make getting (insert GMK keycaps, RAMA board, etc...) easier.

banner

Packagist Build Status codecov

Example Usage

import time

from mma import MechMarketAlert

items = {"GMK Camping", "GMK Striker"}

mma = MechMarketAlert(items, "+12073948899", "+14244780093")

while True:
    try:
        mma.get_lucky()
        time.sleep(60)
    except Exception as e:
        print(e)

Setup

  • Create a Reddit Application - example

  • Create a Twilio Application - example

    • Twilio free trial gives you $15
    • Each text costs about a cent
  • Need to create the following environment variables (below are just examples):

# Reddit
export client_id=DJ-9095+DF90
export client_secret=98f9s08d00sd8f90s90df
export user_agent=mechmarket-alert
export username=reddit_account
export password=reddit_password

# Twilio
export account_sid=AD8908DGNUEKW798798
export auth_token=d8f9s008d9f8s76f7sd