Giter VIP home page Giter VIP logo

juanpablobr / stockalertbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prince25/stockalertbot

0.0 0.0 0.0 97 KB

Faced with the scenario of scalpers using bots to hog up all the inventory of popular holiday toys and sell them at ridiciously high markup price, I decided to at least attempt to put up a fight so we can get our hands on things we want need to survive the #Coronavirus quarantine(s).

Home Page: https://github.com/PrinceS25/StockAlertBot/wiki/Beating-Scalpers

JavaScript 95.94% HTML 4.06%

stockalertbot's Introduction

StockAlertBot

Faced with the scenario of scalpers using bots to hog up all the inventory of popular holiday toys and sell them at ridiciously high markup price, I decided to at least attempt to put up a fight so we can get our hands on things we want need to survive the #Coronavirus quarantine(s). Of course, this is only half the battle. For full writeup on scoring items, look here.

Buy me a Pizza or PayPal me if you'd like to see this project expanded and support me. :)
Buy Me A Coffee Paypal me

How does it work?

Enter the product URLs and set how often you want the program to check if those products are in stock. When an item becomes available, it will notify you through both text on console and three auditory beeps as well as opening the product page automatically in your default web browser if you allowed it to do so. You may further configure to send alerts to Slack or Discord.

What stores/wesbites are supported?

Currently, the following stores are supported:

Screenshot

Prerequisites

  1. Install Node.js
  2. Clone or download this repository git clone https://github.com/PrinceS25/StockAlertBot.git
  3. Change directory cd StockAlertBot
  4. Install npm packages npm install

Usage

  1. Open and edit main.js
    • Add urls of products in the URLS array
    • Change the INTERVAL to suit your desires.
      WARNING: Having the interval too low might have negative consquences such as this program being detected as a bot (Amazon), or blocking your IP from accessing the website.
    • Set OPEN_URL to false if you don't want the application to automatically open urls when item is in stock
    • If you're planning to track more than one Amazon item, set the delay (in seconds) between items by editing AMAZON_DELAY. Otherwise, Amazon may flag the program's requests as a bot.
    • If you're planning to track Target item(s), enter your zip code in TARGET_ZIP_CODE
      NOTE: If you encounter an error relating to API Key, you need to get this key yourself:
      1. Go to target.com with the DevTools (Chrome) or Developer Tools (Firefox) open (Google or ask if you're unsure how)
      2. On the console, you should see GET requests as you load the page.
        In DevTools, you have to click the gear and check "Log XMLHttpRequests" to see them
      3. Click on any of the urls that has the string "key=" and copy the whole key
      4. Paste it to TARGET_KEY
    • If you want to send alerts to webhook URL(s) like Discord or Slack, add them to WEBHOOK_URLS array
  2. Execute and continue about your day node main.js
  3. Consider buying me a Pizza or PayPal'ing me

Things to work on

  • Add more stores
    • Walmart
    • Gamestop
    • Newegg
    • AntOnline
    • Target
    • Tesco
    • Argos
  • Add GUI - Make it easier to use
  • Add Email and Maybe SMS Notifications
  • Fix Find Bugs
  • Initially create seperation between intervals for Amazon items
  • Add a way to have independent delay timers for Amazon
  • Open product page when in stock
  • Add webhookURL to enable posting messages to Slack and Discord

stockalertbot's People

Contributors

prince25 avatar

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.