Skip to content

Commit

Permalink
Fix jarun#211: use user agent from elinks on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Sep 19, 2017
1 parent aead380 commit 21304b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buku.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
'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

Expand Down

0 comments on commit 21304b3

Please sign in to comment.