Merge pull request #3181 from ngosang/user-agent_32x

Changes in User-Agent (v3_2_x)
This commit is contained in:
sledgehammer999
2015-06-13 02:26:10 +03:00
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:

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 "sock_proxy" in os.environ and len(os.environ["sock_proxy"].strip()) > 0: