diff --git a/CHANGES.txt b/CHANGES.txt index c2d0aee..870004f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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. \ No newline at end of file diff --git a/quora/pyquora.py b/quora/pyquora.py index bc2e11f..68ee921 100644 --- a/quora/pyquora.py +++ b/quora/pyquora.py @@ -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', diff --git a/setup.py b/setup.py index eeb804b..c90ab85 100644 --- a/setup.py +++ b/setup.py @@ -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='christophersu9@gmail.com',