Git Product home page Git Product logo

shopify-monitor's Introduction

Shopify Monitor

Hello, I am Rock from the team at StormeIO and I have decided to open-source a project of mine. It scans and waits for any changes on any Shopify site. Any product added/restocked will be sent to a webhook provided in the config.json file. I kindly ask you to not steal the code and rebrand it, at minimum keep the footer message.

Example Images

Unable to Load Preview. Unable to Load Preview.

Installation & Usage

How do I setup and use this thing?

  1. First, you must install NodeJS, which can be installed here (pick LTS):

https://nodejs.org/en/download/

  1. Next install Git from here:

https://git-scm.com/downloads

  1. Next, you need to open your terminal/command prompt. On windows press Windows Key and then type cmd and click enter. On Mac open Terminal (its pre-installed). Now type this:

git clone https://github.com/aarock1234/shopify-monitor

  1. After it has completed you must type this:

cd shopify-monitor

  1. Now you can open up the file explorer using the command explorer on Windows and open . on a Mac (don't forget the . after open).
  2. Now navigate to the user folder.
  3. Now you must navigate to the config folder and add proxies into the proxies.txt file, edit the Discord webhook URL inside of webhooks.txt, add your sites in sites.txt, and finally edit your delay in config.json. You can edit this with any standard text editor.
  4. Now that everything is set up go back to your command prompt/terminal and type this:

npm install

  1. Now, wait for it to install completely.
  2. Now you can type this command:

npm start

๐ŸŽ‰ DONE! ๐Ÿฅณ You are now monitoring Shopify. Please report any issues in the issues tab.

Extra

Planned Additions

  • Filter for keywords
  • Support for user pinging based on keywords
  • Slack webhook support

Development

This is really easy to edit if you are proficient in NodeJS. I encourage any devs to make a fork and add any features they would like.

shopify-monitor's People

Contributors

aarock1234 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shopify-monitor's Issues

Any development on the Keyword feature?

The monitor is absolutely amazing, I've been on the lookout for such a monitor w keyword support, tried working on it myself but I have 0 prior experience w Node. If you don't mind me asking, will you be updating soon?

Error Tunneling Socket

Hey. It's me again. So I saw that I had the wrong thing yesterday. So I uninstalled everything today, and tried again. I saw all the correct folders and did everything properly. But, when I typed "npm start", it says error tunneling socket and then it keeps repeating that. What should I do to fix this? I'm on Mac OS.
Screen Shot 2020-11-24 at 3 52 50 PM

npm start: SyntaxError: Unexpected token

I've set everything up as you explained, yet when I run npm start I seem to get the following:

> [email protected] start /root/shopify-bot
> node src/index.js

/root/shopify-bot/src/class/monitor.js:54
    randomProxy = () => {
                ^

SyntaxError: Unexpected token =
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/root/shopify-bot/src/index.js:1:17)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node src/index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-01-18T02_26_57_158Z-debug.log

Full log:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: /usr/share/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/shopify-bot/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
9 verbose lifecycle [email protected]~start: CWD: /root/shopify-bot
10 silly lifecycle [email protected]~start: Args: [ '-c', 'node src/index.js' ]
11 silly lifecycle [email protected]~start: Returned: code: 1  signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `node src/index.js`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/share/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:198:13)
13 verbose stack     at ChildProcess.<anonymous> (/usr/share/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:198:13)
13 verbose stack     at maybeClose (internal/child_process.js:982:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid [email protected]
15 verbose cwd /root/shopify-bot
16 verbose Linux 5.4.0-62-generic
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
18 verbose node v10.19.0
19 verbose npm  v6.14.4
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: `node src/index.js`
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Any ideas?

ERR_INVALID_URL

I run on raspberry pi but it's error

[email protected] start
node src/index.js

[11:02:23.421] [LOG] Monitor Started for https://kith.com/
node:internal/url:563
throw new ERR_INVALID_URL(input);
^

TypeError [ERR_INVALID_URL]: Invalid URL
at new NodeError (node:internal/errors:372:5)
at URL.onParseError (node:internal/url:563:9)
at new URL (node:internal/url:643:5)
at new Monitor (/home/pi/shopify-monitor/src/class/monitor.js:44:21)
at /home/pi/shopify-monitor/src/index.js:21:28
at Array.forEach ()
at Object. (/home/pi/shopify-monitor/src/index.js:20:7)
at Module._compile (node:internal/modules/cjs/loader:1099:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
input: '',
code: 'ERR_INVALID_URL'
}

Node.js v17.9.0

Discord Webhook Check

Is there anyway you can put a command to send a test notification to our discord to ensure everything is running properly ?

this.currentProducts is not iterable

yo , maybe im doing something wrong but I only get
"this.currentProducts is not iterable"
like this
"[04:52:06.153] [ERROR] MON ERR @ https://kith.com: this.currentProducts is not iterable
[04:52:17.655] [ERROR] MON ERR @ https://kith.com: this.currentProducts is not iterable
[04:52:29.088] [ERROR] MON ERR @ https://kith.com: this.currentProducts is not iterable
[04:52:40.514] [ERROR] MON ERR @ https://kith.com: this.currentProducts is not iterable
[04:52:51.932] [ERROR] MON ERR @ https://kith.com: this.currentProducts is not iterable"
let me know if there is a fix
thanks

Webhook format?

Does the webhook go in as the only text in webhook.txt or is there a specific format that it has to be edited in?

Config.json file

So sorry, what is the config json file supposed to be? Currently I can only see 3 lines in it by following the instructions.

Says error and I don't know what to do.

So I properly did all your steps and it shows me this. What do I do?

SyntaxError: /Users/hamim/shopify-monitor/config.json: Unexpected token t in JSON at position 971
at parse ()
at Object.Module._extensions..json (internal/modules/cjs/loader.js:1106:22)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/Users/hamim/shopify-monitor/index.js:2:17)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/hamim/.npm/_logs/2020-11-22T22_23_49_157Z-debug.log
hamim@Hamims-Air shopify-monitor %

Funko site

thank you for this monitor
on funko-shop site once I hit the URL giving on the weebhook it takes me to funko-shop home page instead of the product page
maybe is something simple.
Thank you.

Does the monitor work?

Hello,

Hello, I installed and started the monitor. Now the terminal shows me: [10: 43: 07.265] [LOG] Monitor Started for https://www.kith.com/
[10: 43: 07.269] [LOG] Monitor Started for https://www.xhibition.co/
[10: 43: 07.270] [LOG] Monitor Started for https://wishatl.com/
[10: 43: 07.270] [LOG] Monitor Started for https://www.dtlr.com/
[10: 43: 07.271] [LOG] Monitor Started for https://sneakerpolitics.com/
[10: 43: 07.271] [LOG] Monitor Started for https://nrml.ca/
[10: 43: 07.272] [LOG] Monitor Started for https://hlorenzo.com/
[10: 43: 07.273] [LOG] Monitor Started for https://privatesneakers.com/
[10: 43: 07.273] [LOG] Monitor Started for https://www.topsandbottomsusa.com/
[10: 43: 07.274] [LOG] Monitor Started for https://www.jimmyjazz.com/
[10: 43: 07.275] [LOG] Monitor Started for https://www.saintalfred.com/
[10: 43: 07.275] [LOG] Monitor Started for https://store.unionlosangeles.com/
[10: 43: 07.276] [LOG] Monitor Started for https://shop.havenshop.com/
[10: 43: 07.276] [LOG] Monitor Started for https://fearofgod.com/
[10: 43: 07.277] [LOG] Monitor Started for https://www.apbstore.com/
[10: 43: 07.277] [LOG] Monitor Started for https://www.a-ma-maniere.com/
[10: 43: 07.278] [LOG] Monitor Started for https://burnrubbersneakers.com/
[10: 43: 07.278] [LOG] Monitor Started for https://undefeated.com/
[10: 43: 07.279] [LOG] Monitor Started for https://noirfonce.eu/
[10: 43: 07.279] [LOG] Monitor Started for https://www.stussy.com/

After that, nothing. Does it mean that no new products were found or did I make a mistake?

Another question. Can I use the monitor without proxies if I set the delay to 30000?

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.