Timeline for Py-StackExchange: An API wrapper for Python
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 29, 2015 at 19:17 | review | Late answers | |||
Sep 30, 2015 at 4:06 | |||||
Sep 2, 2015 at 21:36 | comment | added | user3166309 | It is perfectly clear. Thank you very much for such a fast response :) | |
Sep 2, 2015 at 21:14 | comment | added | Lucas Jones | Please get back to me if this is unclear :) | |
Sep 2, 2015 at 21:14 | comment | added | Lucas Jones |
Like most of the Site methods, search returns an iterator over all the items (in this case, questions) in the result, no matter how many pages it takes. That is, it fetches the first page of results, gives them to your program, then fetches the next page, and so on, transparently. The pagesize= argument just specifies how many it fetches at a time from Stack Exchange. To get just the first 50 questions, use so.search(...)[:50] . You don't necessarily need the pagesize = 50 argument here either, but if you know you'll look at all of the 50 it is faster to request them all at once.
|
|
Sep 2, 2015 at 19:06 | comment | added | Brock Adams | If the problem concern the Py-StackExchange library (and it seems like it might), then this is the place to post. | |
Sep 2, 2015 at 19:05 | history | edited | Brock Adams | CC BY-SA 3.0 |
added 9 characters in body
|
Sep 2, 2015 at 18:50 | review | First posts | |||
Sep 2, 2015 at 19:06 | |||||
Sep 2, 2015 at 18:46 | history | answered | user3166309 | CC BY-SA 3.0 |