Wikipedia as part of my iOS app

I want to upload wikipedia information to my iOS app. First, I created a simple RSS reader, but I can’t download the date from the wiki. Now, I think I should create a parser for the wiki.

What do you think about it? Any ideas?

Thanks Tomek

0
source share
3 answers

Parsing a website is never a good idea, in my opinion. Only the most minor changes in the design of the site can disrupt your application and make it unusable. I would try to get your data in an alternative way .; -)

Sandro Meyer

+2
source

Recycling a website directly from your application is never a good idea. If you ever do this, you are prompted to do it on the server and provide the data to your application in a well-known format, so site changes can be quickly managed by your server, and as a result, never crash your application.

Although wikipedia does not have a formal API, it provides some other ways to retrieve data from its servers. You should check this link:

http://en.wikipedia.org/wiki/Wikipedia:Creating_a_bot#APIs%5Ffor%5Fbots

+1
source

I know this question is quite old. But I ran into the same problem and wrote this very small library. I use the mediawiki api (mentioned in a post from Felipe) to get the necessary information.

https://github.com/prine/WikiApiObjectiveC

+1
source

Source: https://habr.com/ru/post/1434747/


All Articles