dmi-instascraper icon indicating copy to clipboard operation
dmi-instascraper copied to clipboard

Fix overjump of entries

Open sarahtartaruga opened this issue 3 years ago • 1 comments

There is a bug which shrinks the scraped results down to the floored half amount of results. E.g. for an Instagram channel with 75 entries, only 37 results are scraped. This is due to the double access of the Iterator "chunk": by using access for looping through the Iterator, and by using the next() function, the Iterator drops 2 items instead of 1. This way, only every second result gets scraped. I resolved it by using the for-loop's iterator from the Iterator item instead of calling next().

sarahtartaruga avatar Dec 10 '20 15:12 sarahtartaruga