Getting the Wikidata id of a Wikipedia/Wikivoyage/Wiktionary article (in a particular language) is easy to do using the Wikidata API, but takes too much time when you have thousands of ids to find.
Is there a program that could do the hard work for me, and be efficient for large volumes?
It could possibly work by downloading http://dumps.wikimedia.org/wikidatawiki/latest/wikidatawiki-latest-wb_items_per_site.sql.gz or similar and wither parse it directly or load it into a database.
- Works for all languages/projects (for instance Italian Wikivoyage, Japanese Wiktionary, etc)
- Open source
- Command line
- Answers each request in less than 100ms (except the first, which downloads data)
- Possibility to reset the data (when I think it is outdated)