Skip to content

Commit

Permalink
Merge pull request #81 from luzhe610/master
Browse files Browse the repository at this point in the history
fix unavailable iciba api
  • Loading branch information
finalion authored Mar 16, 2018
2 parents 57f4731 + 238bedb commit 92e41db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 2.0/wquery/service/iciba.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down
2 changes: 1 addition & 1 deletion 2.1/service/iciba.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit 92e41db

Please sign in to comment.