WikiSearch is a command-line tool that allows users to search and view Wikipedia articles directly from the terminal.
-
Clone the repository to your local machine:
git clone https://github.com/cyberytti/Wikisearch -
Navigate to the project directory:
cd Wikisearch
-
Run the script:
python wikisearch.py -
You will be greeted with a colorful banner and prompted to enter a search query.
-
Type any topic and press Enter. The tool will search Wikipedia for articles related to your query.
-
If search results are found, they will be displayed along with their indices.
-
Enter the number corresponding to the article you want to view, or enter
0to search again. -
The summary of the selected article will be displayed.
-
To exit the program, type
exitwhen prompted for a search query.
- Python 3.x
- mediawiki library
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
