Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

Looking for the book? They have it at the Engineer's Bookstore at 748 Marietta St NW. Here is there website: http://www.engrbookstore.com/ - Monica

Hotspots: Slides and CodeTA CornerComments?AnnouncementsFAQStatic Webspace
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Spring 2006 - Homework 5


Due: Friday, April 7th at 7PM



Quick Overview

Your assignment is to write a program that pulls headlinses from three websites: Digg (http://www.digg.com), Yahoo News (http://news.yahoo.com), and the Blake's news page (http://www.blakeohare.com/news/). After obtaining the headlines, you will generate an html page, with the headlines in a table.



Details, Details
  1. Your function should be named headlines (case sensitive) and your file should be named hw5.py
  2. Your function should take in a directory
  3. Your must use at least 2 functions
  4. Your function should generate a html file named headlines.html in the directory you chose.
  5. Rows: Your table should have 3 rows: one for each different news site. The first row should be headlines from Digg.com, the second row should be headlines from Yahoo News and finally the third row should contain headlines from Blake's News Site.
  6. The first column should have the appropriate heading based on where the headlines came from.
  7. Columns: Your table should have 5 columns.



Information for the Digg site
  1. For this site you want only the first 4 Digg headlines.



Information for Yahoo News
  1. Under the heading "More Stories" obtain the first 4 headlines.



Information for Blake's News
  1. For this site you also want the first 4 headlines.



Summary/Check off list
You will be graded on the following:




How the TA will grade
Your TA, after loading your code into JES will type the following:
>>> directory = pickAFolder()
>>> headlines(directory)
Then your ta will navigate to the directory originally chosen and open the html file created.



At last extra credit

Questions?

Link to this Page