From 21304b35c2ea9c6814c8a1f83dd32225131bef54 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Tue, 19 Sep 2017 18:10:30 +0530 Subject: [PATCH] Fix #211: use user agent from elinks on Linux --- buku.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buku.py b/buku.py index 78bea69..60cbd72 100755 --- a/buku.py +++ b/buku.py @@ -70,8 +70,8 @@ COLORMAP = {k: '\x1b[%sm' % v for k, v in { 'x': '0', 'X': '1', 'y': '7', 'Y': '7;1', 'z': '2', }.items()} -# Disguise as Firefox on Ubuntu -USER_AGENT = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0' +# Disguise as elinks on Linux +USER_AGENT = 'ELinks/0.12pre6 (textmode; Linux 4.4.0-89-generic x86_64; 199x55-2)' myheaders = None # Default dictionary of headers myproxy = None # Default proxy