aboutsummaryrefslogtreecommitdiffstats
path: root/testlib/scraperwiki.py
blob: baf2b572cf23dcf14a9756601913d7183ce72a75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
def scrape(url):
    print "Scraping %s" % url
    if -1 != url.find("file://"):
        f = open(url.replace("file://", ""), "r")
        content = f.read()
        f.close()
        return content
    else:
        return ""

def pdftoxml(pdfcontent, options):
    return pdfcontent