Coder Social home page Coder Social logo

elixir-jeopardy's Introduction

elixir-jeopardy

A jeopardy question scraper and server. Live server at https://jeopardy.mcwebsite.net.

Scraper

Questions are gently scraped from j-archive.com and then can be indexed by category and written out to disk. There are about 60000 questions available, which is the last several years of jeopardy. Questions involving pictures or audio have had them stripped out as they are usually not available to be scraped but they remain in the collection because there is almost always a reasonable clue to go along with them.

API

When the server starts it reads the category index and keeps them in memory so that it can grab a random category quickly, but fetches questions from disk on demand because there are so many. Categories are picked randomly but they are weighted so that categories with more questions tend to come up more often.

There are only two exposed at the moment

  1. /categories/random - get random categories
  2. /questions/bycategory/:category - get all questions in that category

Frontend

The frontend is written in reactjs. Fonts are free fonts that are reasonably similar to the actual jeopardy fonts.

Future

  • configure traefik web router support to deal with backend/frontend split (0%)
  • get the questions into a database (20%)
  • add a parser combinator to the scraper instead of the ad-hoc cleanup I have now
  • add training functionality to allow a person to drill themselves on questions
  • try to tag content of questions to allow for training on specific topics

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.