Hacker News new | ask | show | jobs
by decuran 1809 days ago
Can you extract from wiktionary with this?
1 comments

The answer is complicated (I am mentioning it in the midst of plans and possibilities in README: "(maybe?) other MediaWiki-based sites (like Wikvoyage, Wiktionary, etc.)").

In more details:

1. With the current library, you can't (connection to en.wikipedia.org is hardcoded :shrug:)

2. Adding "what MediaWiki instance to connect" is relatively easy (they all have the same API), including Wiktionary

3. For Wiktionary, current (v. 0.0.2) selectors will be useful, but future ones (infobox, wikitable and other high-level Wikipedia-specific stuff) will be not

4. So I might think of some way of specifying "set of selectors relevant for this instance" or something like that.

5. So, in some distance future, Wiktionary definitely would be fully supported; how distant—probably depends on how fast the project will be moving forward, and how it will be (hopefully) used by others

6. But I might add a support for "use this instance of MediaWiki" in the near future, it is easy!