Skip to content

Commit

Permalink
fix keys
Browse files Browse the repository at this point in the history
  • Loading branch information
csu committed Aug 10, 2014
1 parent 3de4702 commit 38aa309
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
v0.1.4, 26 July 2014 -- Small bugfix to review requests.
v0.1.3, 26 July 2014 -- Added review requests to activity.
v0.1.6, 10 August 2014 -- Bugfix for key
v0.1.5, 10 August 2014 -- Bugfix for followers/following with old UI and certain profiles.
v0.1.4, 9 August 2014 -- Small bugfix to review requests.
v0.1.3, 9 August 2014 -- Added review requests to activity.
v0.1.2, 26 July 2014 -- Fixed to work with new Quora UI.
v0.1.1, 26 July 2014 -- Readme.
v0.1.0, 26 July 2014 -- Initial release.
4 changes: 2 additions & 2 deletions quora/pyquora.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ def get_user_stats(user):
user_dict['name'] = soup.find('h1').find('span', class_='user').string

if soup.find('div', class_="empty_area br10 light") is not None:
attributes = ['Followers', 'Following', 'Topics', 'Blogs', 'Posts', 'Questions', 'Answers', 'Reviews', 'Edits']
attributes = ['Followers ', 'Following ', 'Followers', 'Following', 'Topics', 'Blogs', 'Posts', 'Questions', 'Answers', 'Reviews', 'Edits']

for item in soup.findAll('li', class_="tab #"):
label = item.find('strong').string
if label in attributes:
user_dict[label.lower()] = try_cast(item.find('span').string)
user_dict[label.lower().strip()] = try_cast(item.find('span').string)
else:
attributes_to_href_suffix = {
'followers': 'followers',
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='quora',
version='0.1.4',
version='0.1.6',
description='Fetches and parses data from Quora.',
author='Christopher Su',
author_email='[email protected]',
Expand Down

0 comments on commit 38aa309

Please sign in to comment.