drawrowfly / instagram-scraper

Instagram Scraper. Scrape useful data/posts from instagram users, hashtag and locations pages. Comments and people who liked specific posts and soon more. No login or API keys are required
568 stars 62 forks source link

Fix bug #2

Closed nano2dev closed 5 years ago

nano2dev commented 5 years ago

Error is being thrown when count is set to 0, i.e all user's posts. Because of faulty if logic.

Allow it to default to 0.

Use case is when I want to get all user posts. Without having to guess how many posts user has. There is a check elsewhere that fails if count is greater then user post count.

In that case, if count is greater than user count, just return posts.

drawrowfly commented 5 years ago

Good catch