improve
This commit is contained in:
parent
23fbfbd242
commit
1b46dd6f7e
@ -15,7 +15,12 @@ class Bing(WebService):
|
||||
word = self.word.replace(' ', '_')
|
||||
data = self.get_response(u"http://cn.bing.com/dict/search?q={}&mkt=zh-cn".format(word))
|
||||
soup = parseHtml(data)
|
||||
result = {}
|
||||
result = {
|
||||
'phonitic_us': '',
|
||||
'phonitic_uk': '',
|
||||
'participle': '',
|
||||
'def': '',
|
||||
}
|
||||
|
||||
element = soup.find('div', class_='hd_prUS')
|
||||
if element:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user