Skip to content
This repository was archived by the owner on Oct 19, 2020. It is now read-only.

prakashwagle/wikipediareader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Wikipedia Reader
##Jaroop - Assignment

Author - Prakash Wagle | Date: 09July2016

Question

Requirements - Must be programmed in Java or Scala
Write a command-line program that prompts the user for a topic at the terminal, and then prints out the introductory paragraph of the Wikipedia page for that topic, without HTML tags. 
The program should ask the user to enter the query at a prompt. If the user does not enter a topic (enters a blank one), they should be prompted again. If there is no page for that topic the program should print "Not found." and terminate. 
The program should also terminate after printing a successful result. All you should need to know for this task is that English-language articles for Wikipedia are found at the following URL: http://en.wikipedia.org/wiki/<Topic>.
When there are spaces in a topic, the spaces should be replaced with underscores. You will receive bonus points if the topic can be provided as a command-line argument as well as at a prompt if no argument is provided.
You should document all of your methods appropriately with javadoc (or scaladoc), explaining the purpose of each parameter and possible outcomes. Also, please include a short explanation of your approach to the problem,
and why you chose any particular libraries used. You may use anything from the Java or Scala standard libraries, as well as any third party libraries.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors