From d7eb57b52c7c5639e2c008ad398fd131ea8b9db7 Mon Sep 17 00:00:00 2001 From: ko-zu Date: Tue, 31 Jan 2023 06:00:35 +0000 Subject: [PATCH] Print abuse notice on psl update script --- publicsuffixlist/update.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/publicsuffixlist/update.py b/publicsuffixlist/update.py index bc41d66..97fbce8 100644 --- a/publicsuffixlist/update.py +++ b/publicsuffixlist/update.py @@ -24,6 +24,9 @@ def updatePSL(psl_file=PSLFILE): :param psl_file: path for the file to store the list. Default: PSLFILE """ + print("This is a script to download the latest PSL file.") + print("Do not run this repeatedly more than once per day.") + if requests is None: raise Exception("Please install python-requests http(s) library. $ sudo pip install requests")