ramtinak / InstagramApiSharp

A complete Private Instagram API for .NET (C#, VB.NET).
MIT License
789 stars 239 forks source link

Trying to get feed, and do not get any media. #570

Closed TheLamed closed 1 year ago

TheLamed commented 1 year ago

I've:

Issue category

Language

Usage

Operating System

Describe your issue

Trying to get feed, and do not get any media. Is there any changes in api or library? Or is there another way to get my feed?

var t = await client.FeedProcessor.GetUserTimelineFeedAsync(PaginationParameters.Empty, Array.Empty<string>(), true);

Screenshots

image

ramtinak commented 1 year ago

Don't set Empty, it will tries to get all pages and if somehow library got into an error, it won't return anything!

Use PaginationParameters.MaxPagesToLoad(1) instead and loop the result if you want more.

Search in issues, you'll find how to use PaginationParameters in some functions.

Regards.

TheLamed commented 1 year ago

Thank you, I've tryed, It works ok, but now I'm catching this message: image Probably you know the time to wait to not catch this error message

TheLamed commented 1 year ago

Made some investigation, googled a little and found the reason. Instagram api throws this error if your IP is banned cause of many requests. It shoud works fine in 24-48 hours