All Projects → postaddictme → Instagram Java Scraper

postaddictme / Instagram Java Scraper

Instagram Java Scraper. Get account information, photos, videos and comments.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Instagram Java Scraper

Instapy Cli
✨ Python library and CLI to upload photo and video on Instagram. W/o a phone!
Stars: ✭ 498 (+48.66%)
Mutual labels:  instagram-api, instagram, instagram-client
Swiftinstagram
Instagram API client written in Swift
Stars: ✭ 570 (+70.15%)
Mutual labels:  instagram-api, instagram, instagram-client
Instagram User Feed
This is a scrapper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAuth for PHP.
Stars: ✭ 435 (+29.85%)
Mutual labels:  instagram-api, instagram, instagram-client
Instagramlive Php
A PHP script that allows for you to go live on Instagram with any streaming program that supports RTMP!
Stars: ✭ 362 (+8.06%)
Mutual labels:  instagram-api, instagram, instagram-client
Onegram
This repository is no longer maintained.
Stars: ✭ 137 (-59.1%)
Mutual labels:  instagram-api, instagram, instagram-client
Instagram4j
📷 Instagram private API in Java
Stars: ✭ 629 (+87.76%)
Mutual labels:  instagram-api, instagram, instagram-client
Instagram Scraper
Scrapes an instagram user's photos and videos
Stars: ✭ 5,664 (+1590.75%)
Mutual labels:  instagram-api, instagram, instagram-client
Instagram Php Scraper
Get account information, photos, videos, stories and comments.
Stars: ✭ 2,490 (+643.28%)
Mutual labels:  instagram-api, instagram, instagram-client
Instagram api gem
A Ruby wrapper for the Instagram API
Stars: ✭ 100 (-70.15%)
Mutual labels:  instagram-api, instagram, instagram-client
Igql
Unofficial Instagram GraphQL API to collet data without authentication
Stars: ✭ 80 (-76.12%)
Mutual labels:  instagram-api, instagram, instagram-client
Instagrapi
Fast and effective Instagram Private API wrapper
Stars: ✭ 157 (-53.13%)
Mutual labels:  instagram-api, instagram, instagram-client
InstagramCpp
Instagram REST API client wirtten in C++
Stars: ✭ 24 (-92.84%)
Mutual labels:  instagram-client, instagram, instagram-api
InstaLV
Live stream from desktop to Instagram
Stars: ✭ 27 (-91.94%)
Mutual labels:  instagram, instagram-api
instragram-follow
Automatically follow Instagram accounts
Stars: ✭ 23 (-93.13%)
Mutual labels:  instagram, instagram-api
Ig Monitoring
🚨 DISCONTINUED🚨 IGMonitoring - Free, self hosted Instagram Analytics and Stats
Stars: ✭ 283 (-15.52%)
Mutual labels:  instagram-api, instagram
instagram-api-clone
Instagram RESTful API clone made with Django REST framework
Stars: ✭ 56 (-83.28%)
Mutual labels:  instagram, instagram-api
nanogram.js
📷 An easy-to-use and simple Instagram package that allows you to fetch media content without API and access token.
Stars: ✭ 62 (-81.49%)
Mutual labels:  instagram, instagram-api
igFame
📷 igFame - Tool for automated Instagram interactions [PHP]
Stars: ✭ 16 (-95.22%)
Mutual labels:  instagram, instagram-api
Flutter-Photoarc-app
(Full-stack) Fully functional social media app (Instagram clone) written in flutter and dart with backend node.js and Postgres SQL.
Stars: ✭ 38 (-88.66%)
Mutual labels:  instagram, instagram-api
FCommunity
multi Checkers (Hma/Hulu/Spotify/Call of duty/Instagram/smtp2go/VyprVpn) in One Tool Named FCommunity
Stars: ✭ 26 (-92.24%)
Mutual labels:  instagram, instagram-api

Instagram Java scraper

Instagram Java Scraper. Get account information, photos and videos without any authorization.

Get account by username

Instagram instagram = new Instagram(httpClient);
Account account = instagram.getAccountByUsername("kevin");
System.out.println(account.getMedia().getCount());

Get account by account id

Instagram instagram = new Instagram(httpClient);
Account account = instagram.getAccountById(3);
System.out.println(account.getFullName());

Get account medias

PageObject<Media> medias = instagram.getMedias("durov", 1);
System.out.println(medias.getNodes().get(0).getDisplayUrl());

Get media by code

Media media = instagram.getMediaByUrl("BGY0zB4r7X2");
System.out.println(media.getOwner().getUsername());

Get media by url

Media media = instagram.getMediaByUrl("https://www.instagram.com/p/BGY0zB4r7X2");
System.out.println(media.getOwner().getUsername());

Convert media id to shortcode

MediaUtil.getCodeFromId("1270593720437182847_3");
// OR
MediaUtil.getCodeFromId("1270593720437182847");
// Output: BGiDkHAgBF_
// So you can do like this: instagram.com/p/BGiDkHAgBF_

Convert shortcode to media id

MediaUtil.getIdFromCode('BGiDkHAgBF_');
// Output: 1270593720437182847

If you use this library in your project and want to help us

  • Mark project repository by star on github
  • Make pull request with bug fix
  • Follow project contributors

How to use release version of Instagram Java scraper

Released as com.github.igor-suhorukov:instagramscraper:2.2 into maven central

How to use development version of Instagram Java scraper

Read more info on jitpack page of project. Open "Commit" tab and select revision by commit hash. Just open Gradle or Maven tab copy artifact info and place it with dendency management repository in your project build configuration

IDE lombok plugin

Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java. Never write another getter or equals method again.

If instagram-java-scraper IDE compilation failing because of all the missing getters/setters. Just setup lombok plugin for IntelliJ Idea, Eclipse or Netbeans

Setup http client to handle errors, log response and store cookies

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

Other

PHP library: https://github.com/postaddictme/instagram-php-scraper

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].