in reply to
Foreach loop help. Start from specific line
Every script needs to be restartable. If it were me, I would have put the million names into, say, an SQLite database file and include a “processed?” column which gets updated each time. I might put summary results of some kind in there also. Such an approach would not only handle the restart issue, but would also be good for handling the re-run issue. You will from time to time need to re-query those websites and the script will need to be able to know how to do that, too.