A Windows-based python application aimed at putting Wikipedia and the UrbanDictionary at the tip of your finger. One finger.
UPDATE: Cerebruh is (predictably) no longer under development.
Fully supported and tested. Updates will first come to Windows.
Not tested, possibly broken. Will update after patching.
Absolutely not supported as of now. However, changing the hotkey for the copy function to correspond to MacOS should fix some issues.
Extract the .zip file to a directory of your choice and run cerebruh.py
from the command-prompt.
Depending on how Python is configured on your system, this command might be py cerebruh.py
once command-prompt is focused on the right directory.
You'll need PIP. On Windows, if it hasn't been installed already with Python, python get-pip.py
or py get-pip.py
in the command-prompt could help.
Once PIP is installed, use pip install [libary]
to install that library. You'll need to be connected to the internet.
Once the program is running, highlight some text and press F2 to see how Urban Dictionary defines that word, or, press F9 to see how Wikipedia defines it. If you are on a laptop, some OEMs may require you to press the fn
key along with F2 or F9.
- pyautogui
- time
- keyboard
- pyperclip
- requests
- bs4
- re
- tkinter
- lxml
Some Wikipedia pages don't have text on the first index of the paragraph, and the program starts extracting for text from there, so it returns a blank message. Pressing YES to move on to the next paragraph works fine.
Can be potentially fixed by checking for None
in the return statement for the getSummary()
function.
This seems to be an inherent problem with tKinter. Every time after the first search, the Message Box has to be opened back from the taskbar. As of now, I have not thought of a way to fix this.
It is possible to keep pressing YES and reach the end of a Wikipedia file, on which it will throw an error. This can be easily fixed with a try:catch construct.