mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 11:12:42 +01:00
Slightly simplify modules/wiktionary.py
This commit is contained in:
parent
048b156752
commit
51bafbe841
7
modules/wiktionary.py
vendored
7
modules/wiktionary.py
vendored
@ -13,11 +13,6 @@ from wiktionaryparser import WiktionaryParser
|
||||
import sys
|
||||
import json
|
||||
|
||||
word=sys.argv[1]
|
||||
language=sys.argv[2]
|
||||
|
||||
parser = WiktionaryParser()
|
||||
|
||||
entries = parser.fetch(word, language=language)
|
||||
|
||||
entries = parser.fetch(sys.argv[1], sys.argv[2])
|
||||
print(json.dumps(entries))
|
||||
|
Loading…
Reference in New Issue
Block a user