From d6b3d17b5489827cecd628545b7a416026290968 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Fri, 13 Jul 2012 14:59:51 +0200 Subject: More stubs. --- testlib/scraperwiki.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'testlib/scraperwiki.py') diff --git a/testlib/scraperwiki.py b/testlib/scraperwiki.py index baf2b57..901acec 100644 --- a/testlib/scraperwiki.py +++ b/testlib/scraperwiki.py @@ -1,3 +1,5 @@ +import urllib2 + def scrape(url): print "Scraping %s" % url if -1 != url.find("file://"): @@ -6,7 +8,12 @@ def scrape(url): f.close() return content else: - return "" + response = urllib2.urlopen(url) + html = response.read() + return html def pdftoxml(pdfcontent, options): return pdfcontent + +def swimport(scrapername): + return None -- cgit v1.2.3