aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scrapersources/postliste-ruter4
1 files changed, 2 insertions, 2 deletions
diff --git a/scrapersources/postliste-ruter b/scrapersources/postliste-ruter
index 51a2776..61808a2 100644
--- a/scrapersources/postliste-ruter
+++ b/scrapersources/postliste-ruter
@@ -45,12 +45,12 @@ def process_page_queue(parser, errors):
errors.append("Processing pages interrupted")
def process_journal_pdfs(parser, listurl, errors):
-# print "Finding PDFs on " + listurl
+ print "Finding PDFs on " + listurl
# u = urllib.parse.urlparse(listurl)
html = scraperwiki.scrape(listurl)
root = lxml.html.fromstring(html)
html = None
- for ahref in root.cssselect("div.vedlegg a"):
+ for ahref in root.cssselect("div.attachments a"):
href = ahref.attrib['href']
url = urlparse.urljoin(listurl, href)
if -1 != href.find("file://") or -1 == url.find(".pdf"):