Code Monkey home page Code Monkey logo

cerebruh's Introduction

forthebadge made-with-python forthebadge

image

A Windows-based python application aimed at putting Wikipedia and the UrbanDictionary at the tip of your finger. One finger.

Report and guide to the code.

Platform Support

UPDATE: Cerebruh is (predictably) no longer under development.

๐ŸชŸ Windows

Fully supported and tested. Updates will first come to Windows.

๐Ÿง Linux

Not tested, possibly broken. Will update after patching.

๐Ÿ MacOS

Absolutely not supported as of now. However, changing the hotkey for the copy function to correspond to MacOS should fix some issues.

๐Ÿค” FAQs

How do I run this?

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.

How do I install the libraries?

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.

How do I use this program?

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.

๐Ÿง‘๐Ÿปโ€๐Ÿ’ป Libraries and/or Modules required

  1. pyautogui
  2. time
  3. keyboard
  4. pyperclip
  5. requests
  6. bs4
  7. re
  8. tkinter
  9. lxml

๐Ÿชฒ List of known bugs

  • Wikipedia searches sometimes return blank message-boxes.

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.

  • tKinter Window goes out of focus after first search.

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.

  • End of file on Wikipedia.

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.

cerebruh's People

Contributors

plugyawn avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

cocokane

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.