Created
February 4, 2013 11:27
-
-
Save spookylukey/4706226 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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