Oops, i missed that. But personally i disagree with "politically correct answer", since IMO it's about ethical and if you can't setup your own full node + API services, you still could use public Bitcoin explorer rather than private Bitcoin explorer with sloppy security.
As discussed above, if using the script in the OP, you are most likely searching for thousands (or more likely millions/billions) of addresses, and a public block explorer is going to rate limit your searches.
I realize that fact, but it doesn't change there's ethical problem of using private Bitcoin explorer with sloppy security / without owner's permission.
P.S. this is my last reply to prevent further off-topic / topic derailing