I am trying to scrape all of the comments on a youtube video, but when I provide a pageToken it ignores it and just returns the data I already have.
Example:When I use the following URLhttps://youtube.googleapis.com/youtube/v3/comments?part=snippet&maxResults=100&parentId=[Parent ID of comment]&pageToken=[The nextPageToken of the previous fetch]&key[My API key]
It returns the same thing as this:https://youtube.googleapis.com/youtube/v3/comments?part=snippet&maxResults=100&parentId=[Parent ID of comment]&key[My API key]
Since it keeps returning the same data, it also returns the same pageToken and the program I wrote gets into an infinite loop.