0

I am running some python code set-up on a virtual machine provided by google. The issue I am having is that after some while, the python code stops. I have connected to the server from my terminal, and the script works absolutely fine.

However, after some while it just stops and it's not the script. For example, it's a webscraping script so I should be grabbing around 2m results of data. Sometime it stops at 2000 results, other times at 100,000 results.

I do not know why It does this, any help?

9
  • Can you set up your own virtual machine and run your script in that. This might at least tell you the machine from Google is flawed.
    – anon
    Commented Feb 4, 2022 at 22:45
  • @John That's not something I am familiar on, what exactly do you mean by setting up my own VM? I have run the python script on VSC and it works fine for me it's just that I would have to leave my PC on over night to finish it so I'd rather use a VM. BTW, I am on an imac Commented Feb 4, 2022 at 22:48
  • That's not something I am familiar on, what exactly do you mean by setting up my own VM? ...... You can get an Ubuntu, Debian or other like Linux ISO file, and install it as a virtual machine using the Virtual App (like Virtual Box, VMware or like) that you are using now.
    – anon
    Commented Feb 4, 2022 at 22:52
  • @John This looks very interesting! I just gave it a quick search so I will give this a go. However, the VM on the google cloud can run overnight, is there a way to run something like the Virtual Box on the cloud? Commented Feb 4, 2022 at 22:59
  • You can move a Linux ISO to your cloud server and install in Virtual Box and see.
    – anon
    Commented Feb 4, 2022 at 23:00

0

You must log in to answer this question.

Browse other questions tagged .