-7

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.

New contributor
Liviu Cortac is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
3
  • maybe you need faster connection to internet or faster computer. And this not problem with code. Commented 13 hours ago
  • 3
    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. Commented 13 hours ago
  • 1
    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. Commented 12 hours ago

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.