Skip to content

Instantly share code, notes, and snippets.

@MechCoder
Created June 18, 2013 12:20
Show Gist options
  • Save MechCoder/5804909 to your computer and use it in GitHub Desktop.
Save MechCoder/5804909 to your computer and use it in GitHub Desktop.
Useless Piece of code, that turned out to be useful
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