aboutsummaryrefslogtreecommitdiffstats
path: root/testlib/scraperwiki.py
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2012-07-13 14:59:51 +0200
committerPetter Reinholdtsen <pere@hungry.com>2012-07-13 14:59:51 +0200
commitd6b3d17b5489827cecd628545b7a416026290968 (patch)
treef2c983ce648791602651ae66c9f1fd408189bc91 /testlib/scraperwiki.py
parent82a02bfae556f1a5709acb43df631108587547b8 (diff)
More stubs.
Diffstat (limited to 'testlib/scraperwiki.py')
-rw-r--r--testlib/scraperwiki.py9
1 files changed, 8 insertions, 1 deletions
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