Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/icoz/habraparse.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/habr
diff options
context:
space:
mode:
authoricoz <icoz.vt@gmail.com>2015-02-08 13:14:49 +0300
committericoz <icoz.vt@gmail.com>2015-02-08 13:14:49 +0300
commit4e2dbe3b6b5c5e390757c71d91486703d9244e49 (patch)
tree0413aae0ba6582858a823e7b0b8011183c71366f /habr
parent7b7e930d846373b3b0804e07cac510571bce7bc6 (diff)
bugfix in habr.user parsing for registration_date
Diffstat (limited to 'habr')
-rw-r--r--habr/user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/habr/user.py b/habr/user.py
index b5e1489..ddc93de 100644
--- a/habr/user.py
+++ b/habr/user.py
@@ -143,7 +143,7 @@ class TMUser(object):
tmp = self._doc.xpath("//div[@class='user_profile']//dd/a[@class='city']")
self._user_profile['city'] = tmp[0].text if len(tmp) else ''
self._user_profile['people_tags'] = [i for i in map(lambda x: x.text, p_tags)]
- self._user_profile['registraion_date'] = registration_date[:registration_date.index('\r\n')]
+ self._user_profile['registration_date'] = registration_date[:registration_date.index('\r\n')]
tmp = self._doc.xpath("//div[@class='stats']/div[@id='followers_count']/a")
self._user_activity['followers_count'] = int(tmp.pop().text.split(' ')[0]) if len(tmp) else 0