Just a small project for generating random facts from specific wikipedia category using Mangus Manske's random article tool and wikipedia api. For ui PyQt5 was used.
- PyQt5
- requests
- webbrowser
- re
The blue link is clickable and will open the wikipedia page in your browser. The button "More" will generate another fact from one of selected categories. "Add field" will add category written nearby if it exists. "Show" will show or hide the category field and the "Delete Selected" button. The latter is for deleting selected categories. "Save" will save url in saved_urls.txt. To open it click "Links" button. Resolution of program window and language can be changed by editing config file.
Contain 3 changeable parameters:
- resolution - width and height of program window
- language - could be any en, ru, de etc.
- Depth - Integer number from 0 to 10. The bigger the number the wider range of subcategories.
- avoid-descriptions - avoid pages with these descriptions.
