Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f27fdf7501
Fetching contributors…

Cannot retrieve contributors at this time

executable file 38 lines (30 sloc) 0.796 kb
#!/usr/bin/env python
import sys,os
sys.path.insert(0, os.path.abspath('.'))
from mincss.processor import Processor
URL = 'http://localhost:9000/page.html'
def run():
p = Processor()
p.process(URL)
print("INLINES ".ljust(79, '-'))
for each in p.inlines:
print("On line %s" % each.line)
print('- ' * 40)
print("BEFORE")
print(each.before)
print('- ' * 40)
print("AFTER:")
print(each.after)
print("\n")
print("LINKS ".ljust(79, '-'))
for each in p.links:
print("On href %s" % each.href)
print('- ' * 40)
print("BEFORE")
print(each.before)
print('- ' * 40)
print("AFTER:")
print(each.after)
print("\n")
if __name__ == '__main__':
run()
Jump to Line
Something went wrong with that request. Please try again.