Answer the question
In order to leave comments, you need to log in
How to make parser auto-resume from the moment of break or from the moment of stop by Api Python?
The parser made everything works in the database is entered, the PostgreSQL database. Pure Python code. But after that, I stop it, for example, at the 1000th element, and then start it again, it starts pulling out the elements from the beginning, duplicating them. I don’t care about duplicates now, I need to auto-renew parsing from the moment it was interrupted or stopped. Please tell me how to implement this...))
Answer the question
In order to leave comments, you need to log in
Well, at each iteration, save the current value to a file, and read from there at startup. Damn, what's the problem?
UPD:
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ в рот мне ноги. какой же здесь прокомментированный и отформатированный код :( +++++++++++++++++++++++++++++++++++++++++
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question