Skip to content

Conversation

@erinspace
Copy link
Member

Add arg that will grab only a certain number of pages of results. This will help for both local development and test generation, as we can limit the number of results that the test harvesters harvest, and local harvesters take in.

@erinspace erinspace changed the title [WIP] Add "resume" argument to harvesters Add "resume" argument to harvesters Sep 15, 2015
@fabianvf
Copy link
Contributor

I wonder if it might be better to specify the number of times to follow links? That would allow us to choose the minimum number of jumps for our other harvesters to pass

@erinspace
Copy link
Member Author

I like that idea. I'll change it so it does that!

@erinspace erinspace changed the title Add "resume" argument to harvesters [WIP] Add "resume" argument to harvesters Sep 17, 2015
@erinspace erinspace changed the title [WIP] Add "resume" argument to harvesters [WIP] Add "page_limit" argument to harvesters Sep 21, 2015
Copy link
Contributor

Choose a reason for hiding this comment

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

This may have different behavior in python3 (division operator semantics changed slightly, IIRC)

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, I would put this check as a condition of the while loop.

Copy link
Member

Choose a reason for hiding this comment

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

# python3
1 / 2   # 0.5
1 // 2  # 0

# python 2
1 / 2   # 0
1 // 2  # 0

from __future__ import division
1 / 2   # 0.5
1 // 2  # 0

Copy link
Contributor

Choose a reason for hiding this comment

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

thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants