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

Comments retrieval #83

Open
snkas opened this issue Jun 23, 2014 · 0 comments
Open

Comments retrieval #83

snkas opened this issue Jun 23, 2014 · 0 comments

Comments

@snkas
Copy link
Contributor

snkas commented Jun 23, 2014

I'm currently implementing the Comment retrieval, but the way Reddit returns the comments is quite perculiar

When you ask to give 300 comments with depth 2, it will select the 300 comments that it finds most fitting. When you ask to given 300 comments with depth 1, it will select the 300 first level comments (as expected).

My proposal: first do a breadth first search, retrieving all comments, and then retrieve for each comment that has children the max amount of comments (500), thus giving approximately all comments in a thread. The comments are then recursively added to a RoseTree (maintaining the order).

Any ideas?

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

No branches or pull requests

1 participant