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
class Foo(object): | |
def __init__(self, a, b): | |
self._a = a | |
self._b = b | |
@property | |
def a(self): | |
return self._a |
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
>>> from lxml.html.clean import clean_html | |
>>> clean_html("This is my abstract. I propose a set of lightning talks ( < 5 minutes).") | |
'<p>This is my abstract. I propose a set of lightning talks ( </p>' |
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
#!/usr/bin/env python | |
import os | |
import argparse | |
import urllib | |
from BeautifulSoup import BeautifulSoup # 3.2.0 | |
def getPagesForOnePath(path): | |
f = urllib.urlopen(path) | |
soup = BeautifulSoup(f) |
NewerOlder