RSS

Python program

07 Nov

You need to develop a Python program working with Wikipedia API. Your program should ask user for search query and language, then display the list of all available articles matching the query in chosen language with short summary for each. The program should display results in any language properly. You should use only Python standard libraries. Completed tasks with words “import Wikipedia” will be considered as FAILED. Documentation for Wikipedia API is available here: https://www.mediawiki.org/wiki/API:Main_page

 

Input: search query and language

Output: list of all Wikipedia articles matching the query in chosen language

 

Example:

Query: Apple

Language: fr

 

Result:

[1] Apple

Apple estune entreprise multinationale américaine qui conçoit et commercialise des produits électroniques grand public, des ordinateurspersonnels et des logicielsinformatiques…

 

[2] Apple II

L’Apple II (parfoisorthographié Apple ][ ou Apple //) estl’un des premiers ordinateurspersonnels au monde fabriqué à grandeéchelle…

 

[3] Apple TV

L’Apple TV est un appareilconçu par Apple qui permet la communication sans fil entre un ordinateur et un téléviseur. Il estdisponibledepuis fin mars 2007 danssa première version.

 

 

 
Leave a comment

Posted by on November 7, 2017 in Academic Writing

 

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: