Changes in User-Agent

This commit is contained in:
ngosang 2015-05-14 21:01:29 +02:00
parent 8897001567
commit ad2a18b3bc
4 changed files with 6 additions and 7 deletions

View file

@ -36,7 +36,7 @@ import socks
import re
# Some sites blocks default python User-agent
user_agent = 'Mozilla/5.0'
user_agent = 'Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Firefox/38.0'
headers = {'User-Agent': user_agent}
# SOCKS5 Proxy support
if os.environ.has_key("sock_proxy") and len(os.environ["sock_proxy"].strip()) > 0: