Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated scrapper.py #13

Merged
merged 1 commit into from
Jan 2, 2017
Merged

Updated scrapper.py #13

merged 1 commit into from
Jan 2, 2017

Conversation

abhay44
Copy link
Contributor

@abhay44 abhay44 commented Dec 4, 2016

As number_of_pages can be float, changed it to int(number_of_changes) so that it loops in the number of pages received.

@@ -100,7 +100,7 @@ def search_location(location, keyword=None, max_users=10, params={}):
number_of_pages = ceil(number_of_users / 100)

users = _get_users(response.json()['items'])
for i in range(2, number_of_pages):
for i in range(2, int(number_of_pages)):
Copy link
Owner

@kshitij10496 kshitij10496 Dec 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abhay44 I would prefer you type-cast the identifier number_of_pages at its definition itself ( L100).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kshitij10496 Updated!

@kshitij10496
Copy link
Owner

@abhay44 Can you squash the commits into a single one please ?

@abhay44
Copy link
Contributor Author

abhay44 commented Jan 2, 2017

@kshitij10496 Done!

@kshitij10496 kshitij10496 merged commit 52f0343 into kshitij10496:master Jan 2, 2017
@kshitij10496
Copy link
Owner

@abhay44 Thanks for your patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants