Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RATE_LIMITED #159

Open
Nicky-Sa opened this issue Sep 8, 2021 · 2 comments
Open

RATE_LIMITED #159

Nicky-Sa opened this issue Sep 8, 2021 · 2 comments

Comments

@Nicky-Sa
Copy link

Nicky-Sa commented Sep 8, 2021

Hello, tnx for your project, when I call instagram.basePage(), I get this error:
Exception in thread "main" me.postaddict.instagram.scraper.exception.InstagramException: Rate limited : RATE_LIMITED
this is my code:
HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor();
loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);

    OkHttpClient httpClient = new OkHttpClient.Builder()
            .addNetworkInterceptor(loggingInterceptor)
            .addInterceptor(new ErrorInterceptor())
            .cookieJar(new DefaultCookieJar(new CookieHashSet()))
            .build();

    Instagram instagram = new Instagram(httpClient);
    instagram.basePage();
@gouravg8
Copy link

RATE_LIMITED error happens because Instagram does not allow scraping data without authorization (login) from their platform

@hetalvadadoriya
Copy link

Does this behaviour will change if the OP log into their Instagram account?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants