Skip to content
This repository was archived by the owner on Jul 14, 2020. It is now read-only.

Bugfix for missing comments#105

Open
TGWesper wants to merge 1 commit intominimaxir:masterfrom
TGWesper:master
Open

Bugfix for missing comments#105
TGWesper wants to merge 1 commit intominimaxir:masterfrom
TGWesper:master

Conversation

@TGWesper
Copy link
Copy Markdown

When scraping multiple posts in a row, any post that is scraped after a post with paged comments had a malformed base_url, containing multiple "&after=" parameters. Because of this, apparently only the last page of comments was scraped for all subsequent posts.
Resetting the "after" variable at the start of the loop fixes this. In the for-loop for subcomments this was already implemented correctly.

When scraping multiple posts in a row, any post that is scraped after a post with paged comments had a malformed base_url, containing multiple "&after=" parameters. Because of this, its seems that only the last page of comments was scraped for all subsequent posts.
Resetting the "after" variable at the start of the loop fixes this. In the for-loop for subcomments this was already implemented correctly.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant