Giter Site home page Giter Site logo

wikiquiz's Introduction

Welcome!

wikiquiz's People

Contributors

alexgreene avatar c-w avatar lgommans avatar t0mk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wikiquiz's Issues

HTTP 500 error

  • pip install -r requirements.txt
  • python server.py
  • open index.html in browser
  • Type in "Honda", press "quiz me"
  • No change.
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
 * Restarting with stat
 * Debugger is active!
 * Debugger pin code: 640-888-131
127.0.0.1 - - [19/Feb/2017 10:40:48] "GET /quiz/Honda/ HTTP/1.1" 500 -

Console returning 200, but question field not changing.

Hello! I am encountering a problem where, a lot of the time, the console when doing python server.py returns a 200 for an article, but it doesn't change the question field. What makes this even stranger is that it changes the title field!

Live Example

This sounds like an amazing project ! Why don't you deploy this to Heroku or somewhere else to display a live demo of the quiz?

Shows multiple identical answers

Any article I try gives duplicate answers, sometimes three and usually two.

Even the demo article that you show in the readme, motorcycles, doesn't work at all. It asks obvious questions or proposes duplicate answers. At least all duplicates are counted as correct.

Raises 500 error for some but not all articles

There are articles where it raises a 500 error in case it's unable to generate any questions.

For example, for "beer" (I added some lines to print the relevant exception traceback):

Traceback (most recent call last):
  File "python/server.py", line 17, in get_quiz
    for question in a.quiz.get_ten_random():
  File "/Users/svisser/projects/WikiQuiz/python/Quiz.py", line 19, in get_ten_random
    selected.append(random.choice(self.questions))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/random.py", line 275, in choice
    return seq[int(self.random() * len(seq))]  # raises IndexError if seq is empty
IndexError: list index out of range

This is different from #1 as I'm able to run the project successfully for other articles (like "baseball").

Encoding error?

I commented out lines 14, 27, 28 to see why it wouldn't work and I get this error.

File "WikiQuiz-master/python/server.py", line 15, in get_quiz a = Article(article_name) File "WikiQuiz-master/python/Article.py", line 19, in __init__ self.page.summary.encode('ascii', 'ignore')) File "WikiQuiz-master/python/Article.py", line 54, in generate_questions_for sec.replace(")", "("))[0::2]) TypeError: a bytes-like object is required, not 'str'

I printed 'sec' and I do get text from the Wiki article but it fails on the first call to generate_questions_for()

Missing license

Technically, users aren't able to contribute to this project as there is no license. You might want to add one, whether it be MIT, BSD, Apache, or GPL.

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.