Skip to content

Instantly share code, notes, and snippets.

@spookylukey
Created February 4, 2013 11:27
Show Gist options
  • Save spookylukey/4706226 to your computer and use it in GitHub Desktop.
Save spookylukey/4706226 to your computer and use it in GitHub Desktop.
Hints:
= Step 2 =
1) The first line of the table is different from the others
2) It should be
print list(row.strings)
not
print list[row.strings]
3) You'll need to do get individual 'td' elements from 'row', using 'find_all'
4) You'll need to use the 'strip' method to get rid of the leading and trailing whitespace
= Step 4 =
The problem is in this line:
outfile = open('step4.txt', 'w')
It might not do what you think it does.
Look up the docs for the open function
http://docs.python.org/2/library/functions.html#open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment