instagram-java-scraper icon indicating copy to clipboard operation
instagram-java-scraper copied to clipboard

RATE_LIMITED

Open Nicky-Sa opened this issue 4 years ago • 2 comments

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();

Nicky-Sa avatar Sep 08 '21 09:09 Nicky-Sa

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

gouravg8 avatar Jan 16 '23 14:01 gouravg8

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

hetalvadadoriya avatar Dec 14 '23 06:12 hetalvadadoriya