Created
June 18, 2013 12:20
-
-
Save MechCoder/5804909 to your computer and use it in GitHub Desktop.
Useless Piece of code, that turned out to be useful
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
import urllib2 | |
import re | |
html = urllib2.urlopen('http://12000.org/my_notes/kamek/KERNEL/index.htm', 'r') | |
html = html.readlines() | |
ode = open('ode.txt', 'w') | |
for line in html: | |
if line.startswith('<PRE'): | |
index = html.index(line) | |
ode.write(html[index + 2]) | |
del html[index] | |
ode.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment