GithubHelp home page GithubHelp logo

dam998 / shopify-monitor Goto Github PK

View Code? Open in Web Editor NEW
200.0 34.0 39.0 118 KB

Support proxies, keywords, multiple webhook url, avoid ban and more - current version: 1.5

License: MIT License

JavaScript 100.00%
restock sneakers sneakerbot footwear streetwear monitor monitoring monitoring-tool shopify snkrs

shopify-monitor's Introduction

Shopify monitor

Information

This is a very simple and powerful shopify monitor script
Because is always uptodate, extremely lightweight and efficient, this shopify monitor is better than a lot of paid monitor, COVID-19 brings also good things

Notification example

This is an example of discord notification that monitor will send to you

image

ATC and Cart are very usefull links
If you click the ATC link the site'll add automatically the corresponding product in your cart, then you can click the Cart link to jump istantly to the cart with the product already inside

These links are very useful for speeding up the purchase of products

Follow the few steps below to set the environment and start the monitor

Before we start: requirements

Git

If you didn't install git before, do it, now! --> git

Npm & Node js

If you don't have installed npm or node js go to this page: node js download and install node js

Mongo DB

You can install mongo db following this guide: mongo db

If you need some help to install it you can see this video https://www.youtube.com/watch?v=FwMwO8pXfq0&t=552s

NOTE: I've git version 2.26.2, node js version 12.16.3, mongodb version 4.2.6. If you have any problems with the monitor, try to update your setup with my versions

Prepare the environment

Open your cmd and run

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

Before edit the config.json please read the Configuration settings below because, if you mistake to edit it, the monitor could not start or not work propertly

Then go inside the project folder and run:

npm install

Start the monitor

To start the monitor run this:

npm start

That's all, the shopify monitor has been started, if it finds a product it will notify you on discord

When the monitor starts it sends a discord message, if you don't receive a discord message from the monitor it means there is a problem with the webhook url

Configuration settings

Open the config.json file and be careful to follow the rules below for proper operation

  • mongodb_uri: don't modify this url, it's not necessary, leave it like you found it.

  • webhook_url: this field is an array of string, here you have to add your discord webhook url, monitor'll notify you at this url. because is a array you can add more than 1 webhhok url

  • discord_message_settings: this field rappresent an object that permit you to customize discord message:

    • botImage: this rappresent the image of the bot, insert here an absolute URL to change it
    • botName: this rappresent the name of the bot
    • footerDescription: here you can insert a footer description
    • footerImage: here you can insert an absolute URL to add an image to the footer. NB: footer image will not display if description is empty
    • timeOfNotification: this is a boolean value (true or false), if true you'll see the time of notification in the message's footer
  • requestTiming: this field means after how many milliseconds the monitor sniff the sites to find new products, I reccomand to leave this at least at 30000 because if you don't use proxies easy that site could ban you (I'll implement proxies in v.2) however I have implemented an algoritm to unban the monitor if ban occurred but you lose some time.

  • keywords: this field are an array of array, here you can specify keywords to filter products to notify, this field work over all sites specified in the config.json file.
    How to use it? This is an example of array in array
    [["Adidas"],["New Balance"],["Nike","Jordan"]]
    If I write this I mean that I'll monitor all adidas products, all new balance products and all nike jordan products in the sites, because nike and jordan are in AND and not in OR. So, for example, if I want notify only if the monitor find Adidas Yeezy 350 or Adidas Yeezy 380 I'll write:
    [["Adidas","Yeezy","350"],["Adidas","Yeezy","380"]]
    Maybe this is not easy to understand to all, if you have any dubts, please, open an issue, I'll explain it better with more examples.
    NB: If you don't want use keywords don't specify the field keywords
    TIPS:

    • If you want search nike jordan please not write like this [["Nike Jordan"]] but write this [["Nike"],["Jordan"]] because you have a lot of more possibility to not mistake and skip an important notification
    • The keywords are not keysensitive so there is no difference beetween Nike or nike
  • sites: this field is an array of objects, in each object you can specify 2 fields:

    • url: this rappresent the site's url
    • keywords: here you can insert an array of array to filter products for the specified site before. The rules for the keywords are the same explained.
  • proxiesList: this field is an array of proxies, only ipv4 are supported. Please don't use free proxies found online because they are (always) shit, don't spent time to search them, a good proxy cost only some cents. Insert proxies in this format: ["http://{username}:{password}@{host}:{port}", "http://{username}:{password}@{host}:{port}"]
    TIP: If normally you setted the requestTiming field to 30000 with only 2 proxies you can set it to 10000 (10 seconds) because 1 ip used is from your pc/server and 2 from proxies

TODO List

Done News Version
First basic version of the monitor with notification on discord version 1
Implement an algorithm to improve the search for new or modified products and avoid spam version 1.1
Add usefull links to the discord's notifications (like atc and cart links) version 1.2
Manage if a site bans you version 1.3
Create a very useful log management for the notification of important informations version 1.3.1
Keywords to filter products version 1.4
Possibility to customize discord messages version 1.4.1
Possibility to add more webhook url in the same script version 1.4.2
Possibility to use proxies version 1.5
possibility to monitor hundreds of more products simultaneously with only 1 script run version 1.5.1
more ... version ...

Send me a message if you have ideas or problem, I am here

License

This project is licensed under the MIT License - see the LICENSE file for details

shopify-monitor's People

Contributors

dam998 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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

shopify-monitor's Issues

Proxies?

Hey, im wondering what ipv4 proxy provider would be fine for this?
Edit: Do we have to run proxies in order to run this or we can use no proxies?

error starting

C:\Users\alky4\Desktop\shopify-monitor\src\classes\Task.js:31
start = async () => {
^

SyntaxError: Unexpected token =
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (C:\Users\alky4\Desktop\shopify-monitor\index.js:6:14)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)

this is the error im getting, can you point me in the right direction of what i might be missing?

Maybe I made a mistake

Hey Dam,
I launched the monitor at 5.30pm and it still hasn't detected any items. I'm afraid I made a mistake. Can you check? Thanks

},
"requestTiming": 30000,
"__KEYWORDS_EXPLAINED" : "In this default example that I've created the monitor will notify you if find a Nike product in hanon or sensinko site, and it'll notify if find a New Balance or Adidas Yeezy product only in hanon site",
"keywords": [["Nike"]],
"sites": [
{
"url": "hanon-shop.com",
"keywords": [["Adidas"],["New Balance"],["Yeezy"],["Nike","Jordan"]]
},
{ "url": "sesinko.com" },
{ "url": "thenextdoor.fr" },
{ "url": "a-ma-maniere.com" },
{ "url": "noirfonce.fr" },
{ "url": "pampamlondon.com" },
{ "url": "de.afew-store.com" },
{ "url": "extrabutterny.com" }
]
}

Timeout

Hello. I set it up correctly and it worked for like 5 mins but now I get this messages everytime. Using 5 Sites and 10 proxies. With a delay of 15000.

Log: �[0m Timeout occurred, a node js script cannot manage a lot of requests in the same time (I raccomand max 10 sites for script's istance, to stay more safe), please start more that 1 monitor with splitted sites or contact Dam998 for help [https://github.com/Dam998/shopify-monitor]
�[31m [ERROR ] �[0m Timeout occurred, a node js script cannot manage a lot of requests in the same time (I raccomand max 10 sites for script's istance, to stay more safe), please start more that 1 monitor with splitted sites or contact Dam998 for help [https://github.com/Dam998/shopify-monitor]
�[31m [ERROR ] �[0m Timeout occurred, a node js script cannot manage a lot of requests in the same time (I raccomand max 10 sites for script's istance, to stay more safe), please start more that 1 monitor with splitted sites or contact Dam998 for help [https://github.com/Dam998/shopify-monitor]
�[31m [ERROR ] �[0m Timeout occurred, a node js script cannot manage a lot of requests in the same time (I raccomand max 10 sites for script's istance, to stay more safe), please start more that 1 monitor with splitted sites or contact Dam998 for help [https://github.com/Dam998/shopify-monitor]

Getting errors after running the script on Ubuntu after a day or so

  timeout: 0,
  adapter: [Function: httpAdapter],
  xsrfCookieName: 'XSRF-TOKEN',
  xsrfHeaderName: 'X-XSRF-TOKEN',
  maxContentLength: -1,
  validateStatus: [Function: validateStatus],
  data: undefined
},
request: ClientRequest {
  _events: [Object: null prototype],
  _eventsCount: 6,
  _maxListeners: undefined,
  outputData: [],
  outputSize: 0,
  writable: true,
  _last: true,
  chunkedEncoding: false,
  shouldKeepAlive: false,
  useChunkedEncodingByDefault: false,
  sendDate: false,
  _removedConnection: false,
  _removedContLen: false,
  _removedTE: false,
  _contentLength: 0,
  _hasBody: true,
  _trailer: '',
  finished: true,
  _headerSent: true,
  socket: [TLSSocket],
  connection: [TLSSocket],
  _header: 'GET /products.json?limit=250 HTTP/1.1\r\n' +
    'Accept: application/json, text/plain, */*\r\n' +
    'User-Agent: axios/0.19.2\r\n' +
    'Host: packershoes.com\r\n' +
    'Connection: close\r\n' +
    '\r\n',
  _onPendingData: [Function: noopPendingOutput],
  agent: [Agent],
  socketPath: undefined,
  method: 'GET',
  insecureHTTPParser: undefined,
  path: '/products.json?limit=250',
  _ended: true,
  res: [IncomingMessage],
  aborted: false,
  timeoutCb: null,
  upgradeOrConnect: false,
  parser: null,
  maxHeadersCount: null,
  reusedSocket: false,
  _redirectable: [Writable],
  [Symbol(kCapture)]: false,
  [Symbol(kNeedDrain)]: false,
  [Symbol(corked)]: 0,
  [Symbol(kOutHeaders)]: [Object: null prototype]
},
data: ''

},
isAxiosError: true,
toJSON: [Function]
}
[ERROR ] Bad gateway error, if you are using ipv6 proxy don't use it, because it's not supported. If this is not the solution please open an issue on github [https://github.com/Dam998/shopify-monitor]

Im running the same config on a windows server and have no issues
I am not running any proxies.

Discord notis

Yo so everything is set up correct, I get the notification that the bot is installed in discord im just wondering why nothing is popping up when I have no errors in the code or anything any suggestions?
And can you check if my code is correct im pretty certain it is !
},
"requestTiming": 30000,
"__KEYWORDS_EXPLAINED" : "",
"keywords": [[""]],
"sites": [
{ "url": "hanon-shop.com" ,
"keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Dunk"],["Nike","Jordan","4"],
["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"]]
},
{ "url": "sesinko.com" ,
"keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Dunk"],["Nike","Jordan","4"],
["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"]]

    },

    { "url": "a-ma-maniere.com" ,
        "keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Dunk"],["Nike","Jordan","4"],
        ["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"]]
    
    },
    { "url": "de.afew-store.com" ,
        "keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Dunk"],["Nike","Jordan","4"],
        ["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"]]
    
    },
    { "url": "extrabutterny.com" ,
        "keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Dunk"],["Nike","Jordan","4"],
        ["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"]]
    
    },
    { "url": "kith.com" ,
        "keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Dunk"],["Nike","Jordan","4"],
        ["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"]] 
    },
    { "url": "shopnicekicks.com" ,
        "keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Dunk"],["Nike","Jordan","4"],
        ["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"]]
    },
    { "url": "jimmyjazz.com",
        "keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Dunk"],["Nike","Jordan","4"],
        ["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"],["Nike","Jordan","Mid"]]
    },
    { "url": "topsandbottomsusa.com",
        "keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Dunk"],["Nike","Jordan","4"],
        ["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"],["Nike","Jordan","Mid"]]
    }

],
"proxiesList": []

}

installing mongodb on linux

Hey, I got the Scirpt running on my Windows(10) Laptop, so it wont be the config that I messed up with, but on my linux server I always get the following Error:

npm WARN npm npm does not support Node.js v10.21.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/

> [email protected] start /home/quentin/resellheads/shopify_monitor/resellheads_shopify_monitor
> node index.js

/home/quentin/resellheads/shopify_monitor/resellheads_shopify_monitor/src/classes/Task.js:24
    start = async () => {
          ^

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> (/home/quentin/resellheads/shopify_monitor/resellheads_shopify_monitor/index.js:6:14)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    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 Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
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!     /home/quentin/.npm/_logs/2020-08-20T08_44_50_895Z-debug.log

I guess it´s because of mongodb,
thanks <3

impressive Script btw., love it <3

Not picking up items

I set it up and get the notification on my discord but I've been running for 5 hours on 7 sites and not one thing picked up. Is this due to the script or nothing being loaded?

Server

Hi Dam,
how can I do if I would like export the program in a server like mongo?
Where can I modify the code to connect it with the server?

Cant open it

It says this plz help:

C:\Users\Diego\Desktop\shopify-monitor-master>npm start

[email protected] start C:\Users\Diego\Desktop\shopify-monitor-master
node server.js

internal/modules/cjs/loader.js:1170
throw err;
^

SyntaxError: C:\Users\Diego\Desktop\shopify-monitor-master\config.json: Unexpected token . in JSON at position 961
at parse ()
at Object.Module._extensions..json (internal/modules/cjs/loader.js:1167:22)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1019:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object. (C:\Users\Diego\Desktop\shopify-monitor-master\server.js:31:17)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node server.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! C:\Users\Diego\AppData\Roaming\npm-cache_logs\2020-05-13T03_09_04_480Z-debug.log

proxy

Hi, I use private proxies, 10 sites, in the config 2 proxy addresses, the request time is 15000, but after connecting to all sites I see ban

issues due to sites more than 10.

Hey. my server is crashing every now and then
either says Try running less websites or contact Damm998. and the second error at times i get is too many tasks for node.

i had 30 websites in the monitor. then tried creating three versions of the monitor in different directories to run 10 sites each. still got the errors after some time. what am I doing wrong or what would be the best way to setup multiple monitors on my site without them clashing with each other? i have around 30 to 40 sites to monitor.

Thanks.

Hosting Question

Hey. I have a simple short question... Would it be possible to run this on gltich.com ? Sorry, I'm not the best with hosting. Haha.

Webhook Question

@Dam998 If I were to add multiple Webhook URLs into the webhook array in the config.json file, would it send to all those webhooks? Wanted to ask before I tried it.

npm start problem

Hi sorry for this stupid question but I start code. When I start the monitor with "npm start" I have this :
C:\Users\Augustin\shopify-monitor>npm start

[email protected] start C:\Users\Augustin\shopify-monitor
node index.js

internal/modules/cjs/loader.js:1237
throw err;
^

SyntaxError: C:\Users\Augustin\shopify-monitor\config.json: Unexpected token ] in JSON at position 750
at parse ()
at Object.Module._extensions..json (internal/modules/cjs/loader.js:1234:22)
at Module.load (internal/modules/cjs/loader.js:1049:32)
at Function.Module._load (internal/modules/cjs/loader.js:937:14)
at Module.require (internal/modules/cjs/loader.js:1089:19)
at require (internal/modules/cjs/helpers.js:73:18)
at Object. (C:\Users\Augustin\shopify-monitor\index.js:2:17)
at Module._compile (internal/modules/cjs/loader.js:1200:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
at Module.load (internal/modules/cjs/loader.js:1049: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! C:\Users\Augustin\AppData\Roaming\npm-cache_logs\2020-05-23T12_34_00_298Z-debug.log
Please help me !

Received this message today.

blendus.com has an high level of protection from monitors, please notify Dam998 by opening an issue on github [https://github.com/Dam998/shopify-monitor]

Webhook works but not receiving any notifications

I got the original message from the shopify monitor bot on discord that it successfully started but, I haven't received any notifications from the sites. I'm using the default sites and keywords in the config. I have only changed the webhook url to mine in the entire config file to see if it would work but, it hasn't. Instead my cmd is stuck at this:
[INFO ] Connection done with hanon-shop.com
[INFO ] Connection done with sesinko.com

multiple discord webhooks

Hi there,

Is there a specific way to edit the config.json so 1 discord webook can have unfiltered products (no keywords) and then another discord webhook for filtered products (nike, adidas, yeezy)?

user agent

From the request log looks like the user agent is axios/0.19.2.
Should this be overridden to some non script user agent?

start = async error

Hello,
When I wanted to try out your monitor I got the error:

C:\Users\Dylan\Desktop\shopify-monitor-master\src\classes\Task.js:24
    start = async () => {
          ^

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> (C:\Users\Dylan\Desktop\shopify-monitor-master\index.js:6:14)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    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 Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
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!     C:\Users\Dylan\AppData\Roaming\npm-cache\_logs\2020-05-04T21_34_03_272Z-debug.log

Because I am not very experienced with javascript I don't know how to fix this myself.
Do you know how I could fix this?
(hope it's not a stupid question)
Thnx :)

Message Sending

I added this to my server and it is monitoring Nike, but it hasn't sent any messages. I added it 2 hours ago though so I'm not sure when messages should be sent. Does it only send when new products are added?

How I can add normal pages?

[ERROR ] oqium.com has an high level of protection from monitors, please notify Dam998 by opening an issue on github [https://github.com/Dam998/shopify-monitor]
How i can add oqium.com and more pages¿¿¿

problem when npm start

it returns the following error when npm start

(node:8778) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:8778) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

how to solve it?

thanks

Errror

Please help me with this error, I will be very grateful

image

ENETDOWN

When i start the monitor it runs. But after a while i get the error message: "ENETDOWN" how do i solve it?

Sites

How can I add more sites?

Would like to now if setting file written correctly

Hi there I just wanted to know if the config file that I have written is good .
Because it seems the monitor does not seem to filter keywords as output .

there is the config file :

},
"requestTiming": 30000,
"__KEYWORDS_EXPLAINED" : "",
"keywords": [[""]],
"sites": [
{
"url": "hanon-shop.com",
"keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Jordan","11"],["Nike","Jordan","4"],["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90$
},
{
"url": "a-ma-maniere.com",
"keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Jordan","11"],["Nike","Jordan","4"],["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"$
},
{
"url": "apbstore.com",
"keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Jordan","11"],["Nike","Jordan","4"],["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"$
},
{
"url": "alifenewyork.com",
"keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Jordan","11"],["Nike","Jordan","4"],["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"$
},
{
"url": "antisocialsocialclub.com",
"keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Jordan","11"],["Nike","Jordan","4"],["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"$
},
{
"url": "atmosny.com",
"keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Jordan","11"],["Nike","Jordan","4"],["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"$
},
{
"url": "bapefrance.com",
"keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Jordan","11"],["Nike","Jordan","4"],["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"$
},
{
"url": "bdgastore.com",
"keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Jordan","11"],["Nike","Jordan","4"],["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"$
},
{
"url": "fearofgod.com",
"keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Jordan","11"],["Nike","Jordan","4"],["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"$
},
{
"url": "humanmade.jp",
"keywords": [["Adidas","Yeezy"],["Nike","SB"],["Nike","Air","Jordan","1"],["Nike","Jordan","1"],["Nike","Jordan","11"],["Nike","Jordan","4"],["Nike","AIR","FORCE","1"],["Nike","AIR","MAX","90"$
}

npm start

how do I solve this error?

SyntaxError: C:\shopify-monitor-master\shopify-monitor-master\config.json: Unexpected token m in JSON at position 981
at parse ()
at Object.Module._extensions..json (internal/modules/cjs/loader.js:1172:22)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (C:\shopify-monitor-master\shopify-monitor-master\index.js:2:17)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986: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! C:\Users\User\AppData\Roaming\npm-cache_logs\2020-07-21T10_30_27_906Z-debug.log

Issue with the ATC Link

Hi i noticed a problem with the ATC link
When we click on it, it puts an error. I managed to correct the problem by removing the .js from the link. I suggest you make this change on your next update

Otherwise everything works perfectly, thank you
(in the future, an AIO monitor would also be perfect lol)

Discord.js error

Hello, i have this problem when i put npm start

EnriqueMartinez$ npm start

[email protected] start /Users/EnriqueMartinez/Downloads/shopify-monitor-master
node index.js

/Users/EnriqueMartinez/Downloads/shopify-monitor-master/src/classes/Discord.js:13
var setBotName = botSettings.botName && botSettings.botName != "";
^

TypeError: Cannot read property 'botName' of undefined
at Object. (/Users/EnriqueMartinez/Downloads/shopify-monitor-master/src/classes/Discord.js:13:30)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/Users/EnriqueMartinez/Downloads/shopify-monitor-master/src/classes/Task.js:4:17)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/Users/EnriqueMartinez/Downloads/shopify-monitor-master/index.js:6:14)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
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/EnriqueMartinez/.npm/_logs/2020-10-06T06_27_02_425Z-debug.log

Thank you!

linux

Will this run on linux? I had issues trying to get it to run on ubuntu.
It works perfect on windows though.
Thanks!

It's start getting errors when the code runs for 10 minutes

I don't know what it's mean so I copied all here:
Error: getaddrinfo ENOTFOUND https
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:64:26) {
errno: 'ENOTFOUND',
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'https',
config: {
url: 'https://https://nrml.ca//products.json?limit=250',
method: 'get',
headers: {
Accept: 'application/json, text/plain, /',
'User-Agent': 'axios/0.19.2'
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
validateStatus: [Function: validateStatus],
data: undefined
},
request: Writable {
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: false,
needDrain: false,
ending: false,
ended: false,
finished: false,
destroyed: false,
decodeStrings: true,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: true,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
afterWriteTickInfo: null,
bufferedRequest: null,
lastBufferedRequest: null,
pendingcb: 0,
prefinished: false,
errorEmitted: false,
emitClose: true,
autoDestroy: false,
bufferedRequestCount: 0,
corkedRequestsFree: [Object]
},
writable: true,
_events: [Object: null prototype] {
response: [Function: handleResponse],
error: [Function: handleRequestError]
},
_eventsCount: 2,
_maxListeners: undefined,
_options: {
protocol: 'https:',
maxRedirects: 21,
maxBodyLength: 10485760,
path: '//nrml.ca//products.json?limit=250',
method: 'GET',
headers: [Object],
agent: undefined,
agents: [Object],
auth: undefined,
hostname: 'https',
port: null,
nativeProtocols: [Object],
pathname: '//nrml.ca//products.json',
search: '?limit=250'
},
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 0,
_requestBodyBuffers: [],
_onNativeResponse: [Function],
_currentRequest: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 6,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [TLSSocket],
connection: [TLSSocket],
_header: 'GET //nrml.ca//products.json?limit=250 HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'User-Agent: axios/0.19.2\r\n' +
'Host: https\r\n' +
'Connection: close\r\n' +
'\r\n',
_onPendingData: [Function: noopPendingOutput],
agent: [Agent],
socketPath: undefined,
method: 'GET',
insecureHTTPParser: undefined,
path: '//nrml.ca//products.json?limit=250',
_ended: false,
res: null,
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
_redirectable: [Circular],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
_currentUrl: 'https://https//nrml.ca//products.json?limit=250',
[Symbol(kCapture)]: false
},
response: undefined,
isAxiosError: true,
toJSON: [Function]
}

webhook

in the config file, I think I am entering my webhook incorrectly because I get a config.json error

Need advices

Hey Dam, do you have a host and proxies advised?
I am based in France.

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.