diff --git a/2.0/wquery/service/iciba.py b/2.0/wquery/service/iciba.py index 120179b..1e32d0c 100644 --- a/2.0/wquery/service/iciba.py +++ b/2.0/wquery/service/iciba.py @@ -26,7 +26,7 @@ def _get_content(self): 'Accept': 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01'} # try: request = urllib2.Request( - 'http://www.iciba.com/index.php?a=getWordMean&c=search&word=' + self.word.encode('utf-8'), headers=headers) + 'http://www.iciba.com/index.php?a=getWordMean&c=search&list=1%2C2%2C3%2C4%2C5%2C8%2C9%2C10%2C12%2C13%2C14%2C18%2C21%2C22%2C3003%2C3005&word=' + self.word.encode('utf-8'), headers=headers) resp = json.loads(urllib2.urlopen(request).read()) # self.cache_this(resp['baesInfo']['symbols'][0]) # self.cache_this(resp['sentence']) diff --git a/2.1/service/iciba.py b/2.1/service/iciba.py index 8e43be4..6a193eb 100644 --- a/2.1/service/iciba.py +++ b/2.1/service/iciba.py @@ -29,7 +29,7 @@ def _get_content(self): 'Accept': 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01'} # try: request = urllib2.Request( - 'http://www.iciba.com/index.php?a=getWordMean&c=search&word=' + self.word.encode('utf-8'), headers=headers) + 'http://www.iciba.com/index.php?a=getWordMean&c=search&list=1%2C2%2C3%2C4%2C5%2C8%2C9%2C10%2C12%2C13%2C14%2C18%2C21%2C22%2C3003%2C3005&word=' + self.word.encode('utf-8'), headers=headers) resp = json.loads(urllib2.urlopen(request).read()) # self.cache_this(resp['baesInfo']['symbols'][0]) # self.cache_this(resp['sentence'])