Difference between revisions of "CSC111 Make-up Homework 8 2011"

From dftwiki3
Jump to: navigation, search
(Created page with "--~~~~ ---- <bluebox> This assignment is optional. If you decide to do it, you can work on it and submit it any time until the last day of class. I will use the highest of the...")
 
(Tricky NYT)
Line 16: Line 16:
 
<td><a href="http://movies.nytimes.com/movie/358/A-Nous-la-Liberte/overview">A Nous la Liberte (1932)</a></td>
 
<td><a href="http://movies.nytimes.com/movie/358/A-Nous-la-Liberte/overview">A Nous la Liberte (1932)</a></td>
 
...
 
...
</tr>
 
 
</pre></code>
 
</pre></code>
  

Revision as of 12:30, 22 November 2011

--D. Thiebaut 12:30, 22 November 2011 (EST)


This assignment is optional. If you decide to do it, you can work on it and submit it any time until the last day of class. I will use the highest of the grades you got for Homework 8 and this one as the grade for Homework 8.

This homework has to be done individually, not in pair programming mode.

Tricky NYT

  • The setup is the same as for Homework 8.
  • However, the NYT, knowing that people have a tendency to lift their Web pages and process them to extract information from them, has decided to regularly change the HTML tags they use to sandwich the movie titles. So, for example, one month the movie titles may appear in the HTML page as follows:
...
<td><a href="http://movies.nytimes.com/movie/358/A-Nous-la-Liberte/overview">A Nous la Liberte (1932)</a></td>
...
and the next month the information may be coded as follows:
...
<td><div number="358" section="title">A Nous la Liberte (1932)</div>
...