kshitij10496 / gh-notifier

Desktop notifier for all your "social" GitHub notifications
MIT License
20 stars 10 forks source link

Corrected _search_location as python ceil() returns float, not int. #3

Closed zorroblue closed 8 years ago

zorroblue commented 8 years ago

Was getting this error message when I ran the API example( I have Python 2.7.6)

from scrapper import search_location users = search_location("Kharagpur", max_users=10) Traceback (most recent call last): File "", line 1, in File "scrapper.py", line 21, in search_location return _search_location(soup, max_users, params) File "scrapper.py", line 32, in _search_location for i in range(1, number_of_pages): TypeError: range() integer end argument expected, got float.

I found out that Python ceil() returns float as per the docs. Please review this PR :)

kshitij10496 commented 8 years ago

Hey @zorroblue !

Please refer to #2 for details on the issue. (Especially on the second test case in Python2)