Git Product home page Git Product logo

supmonitor's Introduction

SupremeMonitor

Monitors stock of supremenewyork.com

NOTE this program is for research purposes only, and should not be used to strain supreme's servers

Prerequisites: Must have php installed and apache server setup and running.

Instructions:

  1. Download and unzip this repository by selecting Clone or Download/Download ZIP and drag the new folder to your desktop.

  2. Open the folder, and open the file DBConfig.php with your text editor. Enter the host, username, and password for your SQL server. Save the file and close it.

  3. Open terminal and enter:(No quotation marks) "cd /Desktop/SupMonitor-master && php DBCreate.php" If you have configured correctly, you should see "Database created successfully," and "Table created successfully" without error.

  4. To run the monitor enter: "cd && cd /Desktop/SupMonitor-master && php supMonitor.php" The monitor should now run continuously.

  5. To restart the monitor, simply open terminal and repeat step 4.

Notes:

If you would like to trigger a restock for testing purposes, open your browser and navigate to (http://localhost/phpmyadmin). Select SupremeStock on the left, then currentstock. You should see supreme's items populated in a table. While the monitor is running, change one of the 'true' values to 'false' (no quotes). Then, check the monitor to see the triggered restock.

To set up tweets on restocks, follow the tutorial at (http://www.pontikis.net/blog/auto_post_on_twitter_with_php) until you obtain your consumer key, secret consumer key, access token, and secret access token. Open up DBConfig.php with your text editor and paste in your values. Save and restart the monitor to allow for auto-tweeting.

supmonitor's People

Contributors

neiljohn23 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

supmonitor's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.