tylerburleigh / nike-buy-bot Goto Github PK
View Code? Open in Web Editor NEWA bot using Node.js / puppeteer that buys a Nike shoe when it drops
A bot using Node.js / puppeteer that buys a Nike shoe when it drops
Is there a test result?
or
how much guarantee do you have when making a successful purchase?
regard
Why you could assign a thing to log without initialize the log beforehand?
hi guys, probably extremely newbie question but I've made all changes to the script including changing the button to button[data-qa=add-to-cart] but im unsure why it's not launching..
I'm using Australian website so changed the size preference to example 'US 9'.
I'm clicking run and using notepad++ but its just opening up a new tab in chrome with all the code. Have attached screenshots. how do I exactly run this code in notepad++?
Currently having an issue with Adding to the basket.
Error message in console:
Access to fetch at 'https://api.nike.com/buy/carts/v2/GB/NIKE/NIKECOM?modifiers=VALIDATELIMITS,VALIDATEAVAILABILITY' from origin 'https://www.nike.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I have tried to fix this using web security blockers (args: ['--disable-web-security', '--disable-features=IsolateOrigins', ' --disable-site-isolation-trials']) in the .launch(), which supresses the errors, but still not working.
Good Day !
I am not sure is there anyone is encountering this issue while using this bot to buy a sneaker in Nike-sneaker-launch website.
While logging in Nike Account with preset email and password in the code, there will have an error prompt "An error occurred. we are unable to connect to our servers right now. please try again later." as per screenshot below too.
The browser console is per screenshot below for your reference.
I wish you can help me on this issue if you have any idea on it.
Good Luck and all the best to you!
Thanks.
Hello,
i have a question. Would the bot work when i change the links and sizes to Germany ?
Regards
When the bot finds and clicks the add-to-cart-btn (now is called like that), apparently works so the pop-up to checkout appears, but if you look closer to the items on the cart, the number is zero.
Updated all the tools to newer versions as a workaround and not working either (it works even worse). If anybody knows anything...
Hi guys, sorry for posting a noob issue however I'm unable to proceed past the clone stage as typing 'git clone https://github.com/tylerburleigh/nike-buy-bot.git' in a command line isn't working, as it is saying its not recognised. Any possible solutions? I've installed GIT and node.
Hi Guys - hoping you can help!
I am finding issues running code from Australia, I have made the changes to cart code however my code still times out.
Grateful for your help please team - from my limited knowledge looks like these!!!
"FrameManager.waitForFrameNavigation"
"waiting for selector ".size-grid-dropdown" failed"
Hi man, I tried ur bot on nike.it and the debugs works till size selection so I get this error:
(node:4691) UnhandledPromiseRejectionWarning: TimeoutError: Navigation timeout of 30000 ms exceeded at /Users/albicallegari/Desktop/program/nike-buy-bot-master/node_modules/puppeteer/lib/LifecycleWatcher.js:142:21 at async FrameManager.waitForFrameNavigation (/Users/albicallegari/Desktop/program/nike-buy-bot-master/node_modules/puppeteer/lib/FrameManager.js:139:19) at async Frame.waitForNavigation (/Users/albicallegari/Desktop/program/nike-buy-bot-master/node_modules/puppeteer/lib/FrameManager.js:414:12) at async Page.waitForNavigation (/Users/albicallegari/Desktop/program/nike-buy-bot-master/node_modules/puppeteer/lib/Page.js:695:12) -- ASYNC -- at Frame.<anonymous> (/Users/albicallegari/Desktop/program/nike-buy-bot-master/node_modules/puppeteer/lib/helper.js:111:15) at Page.waitForNavigation (/Users/albicallegari/Desktop/program/nike-buy-bot-master/node_modules/puppeteer/lib/Page.js:695:49) at Page.<anonymous> (/Users/albicallegari/Desktop/program/nike-buy-bot-master/node_modules/puppeteer/lib/helper.js:112:23) at /Users/albicallegari/Desktop/program/nike-buy-bot-master/bot.js:81:7 at processTicksAndRejections (internal/process/task_queues.js:93:5) (node:4691) 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(). (rejection id: 1) (node:4691) [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. (node:4691) UnhandledPromiseRejectionWarning: TimeoutError: waiting for selector "button[data-qa=feed-buy-cta]" failed: timeout 30000ms exceeded at new WaitTask (/Users/albicallegari/Desktop/program/nike-buy-bot-master/node_modules/puppeteer/lib/DOMWorld.js:549:28) at DOMWorld._waitForSelectorOrXPath (/Users/albicallegari/Desktop/program/nike-buy-bot-master/node_modules/puppeteer/lib/DOMWorld.js:478:22) at DOMWorld.waitForSelector (/Users/albicallegari/Desktop/program/nike-buy-bot-master/node_modules/puppeteer/lib/DOMWorld.js:432:17) at Frame.waitForSelector (/Users/albicallegari/Desktop/program/nike-buy-bot-master/node_modules/puppeteer/lib/FrameManager.js:627:47) at Frame.<anonymous> (/Users/albicallegari/Desktop/program/nike-buy-bot-master/node_modules/puppeteer/lib/helper.js:112:23) at Page.waitForSelector (/Users/albicallegari/Desktop/program/nike-buy-bot-master/node_modules/puppeteer/lib/Page.js:1125:29) at /Users/albicallegari/Desktop/program/nike-buy-bot-master/bot.js:161:13 (node:4691) 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(). (rejection id: 2)
another thing.. you told that I should run it around drop but how works ? is there any retry function?
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.