Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aniri committed Jul 24, 2017
1 parent 11b886c commit b096f25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scraper.py
Expand Up @@ -157,8 +157,8 @@ def parse_article(self, response):
date = date,
title = title,
description = description,
#documents = json_documents,
#contact = json_contact,
documents = json_documents,
contact = json_contact,
#feedback_days = feedback_days,
#max_feedback_date = feedback_date
)
Expand All @@ -167,7 +167,7 @@ def parse_article(self, response):

def slugify(self, text):
text = strip_diacritics(text).lower()
return re.sub(r'\W+', '-', text)
return re.sub(r'\W+', '--', text)

def get_feedback_date(self, text):
formats = ['%d %B %Y', '%d.%m.%Y']
Expand Down

0 comments on commit b096f25

Please sign in to comment.