import zingu_apis
api = zingu_apis.api("wiktionary")
result = api.fetch("w/api.php?action=query&prop=extracts", action="query", prop="extracts?titles=hello|world", titles="hello|world")
for item in result:
print(item)
const resp = await fetch("https://en.wiktionary.org/w/api.php?action=query&prop=extracts%3Ftitles%3Dhello%7Cworld&titles=hello%7Cworld");
const data = await resp.json();
import zingu_apis
api = zingu_apis.api("wiktionary")
result = api.fetch("w/api.php?action=query&prop=extracts", action="query", prop="extracts", titles="hello|world", explaintext="True", exsentences=5, format="json")
for item in result:
print(item)
const resp = await fetch("https://en.wiktionary.org/w/api.php?action=query&prop=extracts&titles=hello%7Cworld&explaintext=True&exsentences=5&format=json");
const data = await resp.json();