Skip to content

Generates random fact from specific wikipedia category using Mangus Manske's random article tool and wikipedia api.

License

Notifications You must be signed in to change notification settings

Alks42/wikifact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is that?

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.

Requirements

  • PyQt5
  • requests
  • webbrowser
  • re

How it works

ui

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.

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.

About

Generates random fact from specific wikipedia category using Mangus Manske's random article tool and wikipedia api.

Topics

Resources

License

Stars

Watchers

Forks

Languages