3
0
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:
Pragmatic Software 2021-07-10 11:07:28 -07:00
parent 048b156752
commit 51bafbe841

View File

@ -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))