Coder Social home page Coder Social logo

hqbot's Introduction

hqbot

A simple bot to automate answers in HQTrivia

What Is HQ Trivia

HQ Trivia is an online game that resembles the concept of "Who wants to be a Millionaire" and its various derivatives.

The game airs on the official HQ Trivia smartphone application at specific timings.

How It Works

This script OCRs the game real time for question and answers. Parses the generated strings for better processing. And, then uses web scraping to predict the most probable answer. It also uses the concept of Multithreading to improve the time efficiency of the script.

The script is still in making and takes more time to process than needed. This bot is approximately 50-60% efficient in answering the questions.

test_image

What it basically does is that it counts the number of times each answer appears in the top Five results in Google SERP. The script returns the possible answer for each result.

REQUIREMENTS

  1. pyautogui
  2. Pillow / PIL
  3. Pytesseract
  4. googlesearch

Note - The script is developed to run on a Windows Machine. However, the script is still compatible with Unix. Just change the directory of the Pytesseract OCR.

Add all the modules by entering "pip install -r Requirements.txt" in the terminal.

Windows users need to install PyTesseract as a standalone executable. (Add the module + Install as exe too) Linux users need to download "tesseract-ocr" package using their system's package manager.
sudo apt-get install tesseract-ocr
Linux users must also comment out the "Pytesseract Path Line from the code" otherwise it would raise an error.

hqbot's People

Contributors

sharmadeepesh avatar

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.