Skip to content

cyberytti/Wikisearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WikiSearch

WikiSearch is a command-line tool that allows users to search and view Wikipedia articles directly from the terminal.

WikiSearch

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/cyberytti/Wikisearch
    
  2. Navigate to the project directory:

    cd Wikisearch
    

Usage

  1. Run the script:

    python wikisearch.py
    
  2. You will be greeted with a colorful banner and prompted to enter a search query.

  3. Type any topic and press Enter. The tool will search Wikipedia for articles related to your query.

  4. If search results are found, they will be displayed along with their indices.

  5. Enter the number corresponding to the article you want to view, or enter 0 to search again.

  6. The summary of the selected article will be displayed.

  7. To exit the program, type exit when prompted for a search query.

Dependencies

  • Python 3.x
  • mediawiki library

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

About

This is a Wikipedia searching tool in terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages