From 84edf7225bd9454abc598cdde36b14451ad1787d Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 30 Mar 2020 14:42:12 -0700 Subject: add user-agent to deliver_file2disk --- scripts/deliver_file2disk.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/deliver_file2disk.py b/scripts/deliver_file2disk.py index f708b34..f54ecb3 100755 --- a/scripts/deliver_file2disk.py +++ b/scripts/deliver_file2disk.py @@ -78,7 +78,9 @@ class DeliverFatcatDisk: self.disk_prefix = kwargs.get('disk_prefix', 'pdf/') self.disk_suffix = kwargs.get('disk_suffix', '.pdf') self.session = requests_retry_session() - + self.session.headers.update({ + 'User-Agent': 'Mozilla/5.0 fatcat.DeliverFatcatDisk', + }) def run(self, release_json_file): sys.stderr.write("Ensuring all 256 base directories exist...\n") -- cgit v1.2.3