gnikkoch96 / HowLongToBeat-GUI

A GUI that uses ScrappyCocco's HowLongToBeat-PythonAPI to display game's completion times

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How Long To Beat GUI Python Vers.

Description

This project utilizes ScrappyCocco's HowLongToBeat-PythonAPI . How Long to Beat is a website that displays useful information like how long it takes to beat a game's main story, main story + extra activities, and completing the game in its entirety. This GUI performs the basic functionalities of the website--only showing the time to complete the games.

I made this project because I liked the website and I was curious if I can create a GUI version of it using the DearPyGUI framework.

Technologies and Frameworks

Make sure to install the DearPyGUI, HowLongToBeat, and OpenCV Modules for it to work. You can follow the installation to DearPyGUI here , HowLongToBeat-PythonAPI here , and OpenCV modules here

Alt: pip install dearpygui==0.8.56 , pip install howlongtobeat, and pip install opencv-python

  • PyCharm IDE - Coding Environment
  • DearPyGUI v0.8.56 - Framework used to create the GUI
  • OpenCV - Used to scale images of the game covers
  • HowLongToBeat-PythonAPI - Used to search for games and gather specific data on the HowLongToBeat website
  • Python 3.8 - Python vers.

How to Setup

  1. Make sure to install all the necessary frameworks (mentioned at in the Technologies and Frameworks section)
  2. Launch the main.py
  3. Search a game

Demonstration

What I learned

  • APIs can be made by using Web Scrapers like ScrappyCocco's HowLongToBeat-Python API
  • Lambda functions are essentially functions without names
  • Lambda functions are instantiate using the Lambda keyword along with parameters, a colon, and the function definition
  • Lambda functions help reduce the # of lines of code for better readability
  • Lambda is mainly used when the function is specifically used in one or a few instances

Credits

About

A GUI that uses ScrappyCocco's HowLongToBeat-PythonAPI to display game's completion times


Languages

Language:Python 95.7%Language:C 3.1%Language:Cython 0.6%Language:C++ 0.4%Language:PowerShell 0.1%Language:Fortran 0.0%Language:Batchfile 0.0%