Skip to main content
  1. About
  2. For Teams
Asked
Modified 7 days ago
Viewed 63 times
-8

I have a website that is selling some products online, and every day there are updates. I try to be the first that is getting those products, and I created a bot in JS run by tampermonkey to make this automation and get it all first. It worked well till the site started to run slow for me (and maybe for the rest of the users also), and when I was trying to buy the products when the update was launched, other users (or maybe one specific user) was buying everything I need before me. I tried to change the script so that it will not click the UI elements, but work through http requests and stuff, and still the server response are way too slow to get in front and buy all the things. Is there any solution to make this happen and be the first?

I tried UI auto-clicker script, and http requests.

4
  • maybe you need faster connection to internet or faster computer. And this not problem with code.
    furas
    –  furas
    2025-10-07 12:33:34 +00:00
    Commented Oct 7 at 12:33
  • 5
    We can appreciate that you may be trying to solve a coding problem, but at the moment you've presented that problem as nothing more than "some website somewhere on the internet is kinda slow sometimes". We can't really help with that. If you have a specific observation about something specific you're doing in code you've written, we may be able to help with that.
    David
    –  David
    2025-10-07 12:35:00 +00:00
    Commented Oct 7 at 12:35
  • 2
    That's one reason why some brokers have their offices next to the stock markets and are directly connected without using the Internet and why they pay much money for code optimization and hardware. It looks like someone has a better code, hardware and/or location than you. "is there any solution to make this happen and be the first ?" Yes, be faster. Improve your code. Improve your hardware. Improve the connection speed. Don't use script languages and the browser. Write a optimized client with a compiled language.
    jabaa
    –  jabaa
    2025-10-07 12:48:28 +00:00
    Commented Oct 7 at 12:48
  • Or maybe the site doesn't want you to do this stuff and is deliberately slowing down your responses. Check their Terms of Service.
    greg-449
    –  greg-449
    2025-10-08 15:53:34 +00:00
    Commented Oct 8 at 15:53

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.