Python: running Daemon processes on Windows7

I had a program that cleared certain data from certain web pages, and acted accordingly when changing web pages.

How to configure the program so that it continues to work in the background?

I do not need any features

I am just very confused by this concept and will be grateful for any help that anyone can offer.

+5
source share
4 answers

start path-to-pythonw.exe your-code.py

pythonw means without console.

start means start in the background.

if your python is installed on a system scale, you can probably start your-code.pyw

.pyw Connected with pythonw.exe

Remember that you cannot use print (to stdout) in this case.

+10
source

, , , , "daemon" Unix, : Python?

0

Windows "". UNIX , Python script Windows. : Python script Windows? , ?

, srvany .

0

! , google "python daemon" , Python.

Now you can’t know when a website is changing unless you protest it. If the site is well designed, the page you are trying to poll will have the title "Last-Modified", you can make the request "HEAD" as often (be beautiful: don't try, like crazy), and act when Last-Modified> = what is recorded. If the site is poorly designed, it will not have a reliable Last-Modified or ETAG header, in which case you will have to manually analyze and independently verify your changes.

Greetings.

-1
source

All Articles