Skip to content

Instantly share code, notes, and snippets.

@jlehtoma
Created May 17, 2011 18:39
Show Gist options
  • Save jlehtoma/977075 to your computer and use it in GitHub Desktop.
Save jlehtoma/977075 to your computer and use it in GitHub Desktop.
vaaliraapija_spider.py
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