Created
May 17, 2011 18:39
-
-
Save jlehtoma/977075 to your computer and use it in GitHub Desktop.
vaaliraapija_spider.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
info = data[0].select('.//tr//td/text()').extract() | |
# Sukunimi ja etunimi on erotettu pilkulla, erottele nimet | |
names = info[0].split(',') | |
# Poistetaan välilyönnit nimistä | |
names = [name.strip() for name in names] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment