Virtual enviroment for bots?

Floccer

Registered Member
Joined
Mar 2, 2019
Messages
94
Reaction score
18
Hi,

i have 1 bot that is made with pyautogui + normal browser to find images and click links/buttons. I was wondering if i could scale it up but this screen reading is limiting me as it needs to be always visible. I'm not entirely sure if its made with canva or what but i haven't found way to use python + selenium for it. That was my first attempt.

So is there a way i could setup virtual enviroments/desktops on my pc so i could run few of these more? I tried virtualbox and lubuntu but that consume around 40% of my cpu so thats not very good. It's not very frequently run script. It runs at certain intervals finding if it can do things.

Also don't very much like the idea that i would buy linux/windows vps just for this.
 

lucky.sparks

Regular Member
Premium Member
Joined
Oct 6, 2020
Messages
499
Reaction score
853
Website
about.me
I don't know anything about your setup so don't take my suggestion for granted.

1) If you run selenium-based scripts, you probably could hire a developer who can adjust your script to be run in separate threads and schedule them as per need. No need to automate gui then. You can find a lot of selenium devs here on forum but if you don't want to disclose your setup to money-hungry hackers, then probably best bet would be Upwork, I hire there all the time, just be sure to avoid scammers, they are everywhere. I see that selenium is not an option for you(which is hard to belive) so this probably is not a good option.

2) You can buy a cheap dedicated server from Hetzner, 64 threads for ~$150/month. Then you can install Proxmox as a supervisor and then split that box into about 32 virtual machines. The advantage here is that you can run pirated windows and save some windows license costs. I guess this is the best possible option.

3) Or you find a cheap VPS provider, I guess the cheapest starts from ~$4/month per box. You can find digitalocean coupon code that gives you $60-100 worth of credits that allows you to start few $5 boxes for free and use them without any additional costs for a few months or so. If windows is a must, then probably this can cost more as you would need windows licenses and low end boxes does not support windows as this OS requires more resources.

4) Another way is to look up here on marketplace for sellers that offers AWS or Google Cloud accounts with credits, you can get AWS account from 10% of its credited value which is neat.
 
Last edited:

Floccer

Registered Member
Joined
Mar 2, 2019
Messages
94
Reaction score
18
I decided to try using my desktop and RDPWrap program(?). It will allow me to start multiple RDP instansces for users and i can leave my python script there running without interruptions. Script requires screen reading thats why i need to do something like this.

I really hoped to get selenium working but i wasn't able to login to services that i'm using. Browser was detected and deemed bad.
 

Mutexxx

Jr. VIP
Jr. VIP
Joined
Mar 13, 2021
Messages
105
Reaction score
38
You can try to dockerize your application and create many instances in your vps
 

kingvestor

Jr. VIP
Jr. VIP
Joined
Jun 26, 2016
Messages
368
Reaction score
191
Website
kingvestor.com
uBot also has a screen reader without the needs for the screen to be on your desktop screen, but I use them years ago, don't know whether they are still relevant these days
 

TasDePixels

Jr. VIP
Jr. VIP
Joined
Mar 8, 2018
Messages
256
Reaction score
293
You can try to dockerize your application and create many instances in your vps

+ kubernetes for load balancing.

I've been operating this way for many years. I've created docker images for each bot type (Full browser emulation / http based.. / with or without cookies management etc..) that i use as a boilerplate for diffrent projects.

Saves you the headaches of dealing with xvfb status and config and other party poopers.
 
Last edited:
Top