skip to Main Content

I made python script using Selenium webdriver. I use that script to login onto system of my faculty and looking on posts. Script refresh page every 60s to see if there is any new post, if there is new post I would recieve Telegram message on my phone. There is no problem with that, problem is that I have to run that script on my laptop 24h to get notifications, which is not possible since I carry it around.

Question is, how can I run that script 24h? Is there any better solution to monitor that page and send messages if there is new post?

I tried pythonanywhere but I don’t have too much experience in that field so I didn’t manage to make it work since always some module is missing…

3

Answers


  1. You could get your own private server, e.g. DigitalOcean or a raspberry pi.

    Once you have this you can install the ‘screen’ package which allows scripts to be run as if in terminal once disconnected.
    list of commands for screen

    Login or Signup to reply.
  2. Welcome !

    The best way for you would be to use a server so you don’t have to run it locally on your computer.

    You can use an online VPS on which you install your software or you may even try to run it locally on something like a Raspberry Pi.

    In both case, you will have to deal with linux commands.

    Good luck

    Login or Signup to reply.
  3. I’d just use a Windows virtual machine from AWS/Microsoft Azure/Google/etc. This may be a bit overdoing it in your situation, but you could have one VM connected to another VM that’d be running your script, if it’s something that requires an always-on user interface and can’t be run in a Linux headless browser.

    Installing something like AppRobotic personal macro edition on any of the above cloud services would work great. The pro version that’s on AWS Marketplace would also work great, but it’d be overdoing it in your use case.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search