How to extract Jeopardy Questions & Answers from a website?
<p>Here is the (mess) of a script I have thus far. <a href="http://pastebin.com/prpdJXsq" rel="nofollow">http://pastebin.com/prpdJXsq</a></p>

<pre><code>#Jeopardy!
#Goal is to create a list of lists ie.
#[[Category 1, Question 1, Answer 1], [Category 1, Question 2, Answer 2]]
#First iteration will just be Q


import urllib.request, re

Question = []

first_game_id = 3458
last_game_id = 3713

for gameid in range(first_game_id, last_game_id):
    webpageid = "http://www.j-archive.com/showgame.php?game_id=" + str(gameid)
    temp=urllib.request.urlopen(webpageid)
    webpage=temp.read()
    temp.close()
    for line in webpage:
        if question != None:
            Question.append(question)
print(Question)

#wrong.  ??? = figure out which re to insert?

question = re.match('clue_text\"&gt;&lt;/td&gt;')
answer= re.match'correct_response&amp;quot;&amp;gt;???&amp;'


#trying to use re match and compile to match the string and output tuple?
import urllib.request, re
webpageid = "http://www.j-archive.com/showgame.php?game_id=" + str(3713)
temp=urllib.request.urlopen(webpageid)
webpage=temp.read()
temp.close()

question=re.compile(r'clue_text"&gt;*?&lt;/td&gt;')

Question = []
##
##for line in webpage:
##    print(line)
##
##    if question.match(line) != None:
##        Question.append(question)
##
##print(Question)
</code></pre>

<p>I'm a novice (at best) trying to write a python script to extract every Jeopardy question/answer from this awesome website:  <a href="http://www.j-archive.com/showseason.php?season=27" rel="nofollow">http://www.j-archive.com/showseason.php?season=27</a></p>

<p>My general approach was to follow the psuedo code I found here in response to a similar question but this is as far as I have gotten: <a href="http://stackoverflow.com/questions/1025323/jeopardy-questions-in-excel-or-other-database-format">Jeopardy questions in Excel or other database format?</a></p>

<p>Any constructive criticism or outright jeering would be greatly appreciated. </p>
