I want to build a dictionary file of Arabic to English wikipedia titles "wiki_page_title_in_arabic" : "wiki_page_title_in_english"
I now have a list of all the wiki page titles, how can I get the corresponding titles in English ? Putting in mind the huge size of the dictionary.
You could use the API and query for the property language links (prop=langlinks
) and fr ease restrict results to English (lllang=en
). Example: you have the article Stockholm in Arabic: ستوكهولم
Use the query: http://ar.wikipedia.org/w/api.php?action=query&prop=langlinks&format=json&lllang=en&titles=ستوكهولم
The result will give you the English title.