Coder Social home page Coder Social logo

myhqbot's Introduction

myHQBot

A basic trivia answering script. Supports HQ Trivia and related games i.e. Cash Show, Genius, and QuizBiz.

HQ Trivia

Hq Trivia is a live game show app that gives away money daily if you can answer 12 multiple choice questions correctly.

About

There are two versions of the script, one written in MATLAB and one written in Python 3. The MATLAB script is more robust and has more optimizations whereas the python script is more barebones, so I would recommend you check out the MATLAB script first is you have MATLAB installed.

Setup

This script requires you to mirror your iPhone to your computer (Unix/Mac support only). Once this is is accomplished, position the mirror on the left side of your desktop and run either script.

How it Works

  1. Mirror phone screen to desktop.
  2. Screenshot current question.
  3. Rasterize the image.
  4. Run OCR on the image to get relevant text (Tesseract).
  5. Create google search query and webscrape.
  6. Perform a weighted string search count on the parsed text.
  7. Return most probable answer.

Performance

Performance is highly dependent on internet connection. The python script is slower and needs more optimization. This is due to the fact that BeautifulSoup creates a parse tree on the entire HTML text, which is very computationally expensive and not entirely necessary.

Preview

myhqbot's People

Contributors

csshen 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.