Skip to content

Commit

Permalink
Merge pull request #22 from pgayane/master
Browse files Browse the repository at this point in the history
sometimes comments in braces contain new line
  • Loading branch information
pablohoffman committed Apr 18, 2014
2 parents b0acd1c + 264c82f commit 7f52f23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Other tasks:
2. Review crawled data and fix spiders when the data is incorrect
3. Chart results

Here what we have for now:
![Gender Bar Chart](/gender_plot.png)

Running the Scrapy Code
-----------------------
Expand Down
Binary file added gender_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions pycon_speakers/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def _cleanup_name(name):
name = _STRIPRE1.sub(u'', name, re.I)
return _STRIPRE2.sub(u'', name, re.I)

_STRIPRE1 = re.compile(ur'\s*(\(.*\))?( bio)?( -)?( \.)?$')
_STRIPRE2 = re.compile(ur'\s*(/.+)$')
_STRIPRE1 = re.compile(ur'\s*(\(.*\))?( bio)?( -)?( \.)?$', re.DOTALL)
_STRIPRE2 = re.compile(ur'\s*(/.+)$', re.DOTALL)


class SpeakerLoader(ItemLoader):
Expand Down

0 comments on commit 7f52f23

Please sign in to comment.