Updated bot useragent

This commit is contained in:
Luke Rogers 2011-11-21 00:10:16 +13:00
parent 74af39e455
commit db124980e9
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ from urllib2 import HTTPError, URLError
from lxml import etree, html
ua_skybot = 'Cloudbot/3.4 http://github.com/lukeroge/cloudbot'
ua_cloudbot = 'Cloudbot/DEV http://github.com/lukeroge/cloudbot'
ua_firefox = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) ' \
'Gecko/20070725 Firefox/2.0.0.6'
@ -45,7 +45,7 @@ def open(url, query_params=None, user_agent=None, post_data=None,
query_params = {}
if user_agent is None:
user_agent = ua_skybot
user_agent = ua_cloudbot
query_params.update(kwargs)